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, 2019 in Selenium by Bhanu
240 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, 2019 by Abha
• 27,950 points

Related Questions In Selenium

0 votes
1 answer

Getting error NoClassDeffound error while exceuting selenium script(created with maven) , please help me to resolve this

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableMap at org.openqa.selenium.remote.service.DriverService$Builder.<init>(DriverService.java:259) at ...READ MORE

answered Apr 20 in Selenium by celine
1,223 views
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,090 points
1,777 views
0 votes
2 answers

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,520 points
4,039 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31 in Selenium by Sri
• 2,970 points
4,986 views
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,890 points
2,923 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 2 in Selenium by Sri
• 2,970 points
3,361 views
0 votes
1 answer
0 votes
1 answer

How to run a test case on remote webdriver using ruby selenium?

Hey Dhanush, you can follow the below ...READ MORE

answered Aug 23, 2019 in Selenium by Abha
• 27,950 points
328 views