Facing error while using Remote webdriver with Selenium Ruby. Please help!

0 votes

 Facing error while using Remote webdriver with Selenium Ruby. Error shown in username while accessing remote webdriver url:

driver = Selenium::WebDriver.for(:remote, :url =>; "http://#{abc@gmail.com}:#{authkey}@hub.abc.com:80/wd/hub", :desired_capabilities =>; caps)
Aug 22 in Selenium by Bhanu
53 views

1 answer to this question.

0 votes

Hi Bhanu, you might be facing this error in username due to the use of '@' , while accessing remote webdriver url. If you are using Selenium Webdriver with Ruby, then you should keep in mind that special character like aren't allowed in URLs and won't get accepted by Ruby in URL Encoding. So to enter a username like abc@gmail.com, instead of using @ use %40. %40 is equivalent to @ in URL encoding. So your driver command should look like this:

driver = Selenium::WebDriver.for(:remote, :url =>; "http://#{abc%40gmail.com}:#{authkey}@hub.abc.com:80/wd/hub", :desired_capabilities =>; caps)
answered Aug 23 by Abha
• 25,040 points

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer

Java.lang.CharSequence cannot be resolved error while using sendKeys() using Selenium Webdriver

You could try this, myElement .sendKeys(new String[] { ...READ MORE

answered Apr 4, 2018 in Selenium by Johnathon
• 9,080 points
716 views
0 votes
1 answer

Firefox Error: “Your connection is not secure” while launching driver with Selenium 3.0.1 using Java

Download Firefox 55 beta and set capabilities.setCapability("acceptInsecureCerts", true); Here ...READ MORE

answered Sep 17, 2018 in Selenium by Meci Matt
• 9,420 points
363 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,090 points
777 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
1,022 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
724 views
0 votes
1 answer
0 votes
1 answer