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 23, 2019 in Selenium by Bhanu
1,798 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
• 28,140 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, 2020 in Selenium by celine
6,213 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
4,768 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,500 points
13,610 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

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

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,109 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,910 points
7,202 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 3, 2020 in Selenium by Sri
• 3,190 points
7,853 views
0 votes
1 answer

Please help me with automation script for testing Carousel Rotation with Selenium Webdriver.

Hey Hussain, you can use following lines ...READ MORE

answered Aug 14, 2019 in Selenium by Abha
• 28,140 points

edited Jul 19, 2023 by Khan Sarfaraz 4,926 views
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
• 28,140 points
1,544 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP