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
124 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,920 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
327 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,237 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,510 points
2,586 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,870 points
2,040 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,870 points
2,138 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,920 points
164 views