• Register
0 votes
135 views

Problem :

I am trying to learn the Selenium by myself. But now my Sendkeys is not working. Can anybody please help me to fix my issue.

My code is as below:

WebElement uname = driver.findElement(By.xpath("//*[@id='username']"));      
uname.sendKeys("123456");

Below is the error:

Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: call function result missing 'value'
(Session info: chrome=65.0.3325.31)
  (Driver info: chromedriver=2.33.506120 (e3e53437346286c0bc2d2dc9aa4915ba81d9023f),platform=Windows NT 6.1.7601 SP1 x86) 
(WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: '3.8.1', revision: '6e95a6684b', time: '2017-12-01T19:05:32.194Z'
System info: host: 'NEW-PC', ip: '192.168.0.103', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_161'

 

8 4 2
2,300 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I had faced this problem before, I guess it is due to the chrome 65 if you can go back to chrome 64 and if the problem disappears then you are good otherwise you will need to follow below steps.

·  Download latest chrome driver and also download the compatible chrome browser for it.

·  After that you can set the system property as shown below

System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver.exe");                                       
WebDriver driver = new ChromeDriver();

·  My experience says existing files are being cached sometimes in the agent nodes.                                  

So you need to delete the below files and see if it resolves your problem.  

<install_Location>\RedwoodHQ Agent\agent\cache\*.*                           

<install_Location>\RedwoodHQ Agent\agent\executionfiles\*.*

Hope it helps you in solving your issue.

5 2 1
4,980 points

Related questions

0 votes
1 answer 17 views
17 views
I am finding a program that will help me to handle multiple windows in Selenium Webdriver.
asked Oct 5, 2020 Daniel Anderson 4k points
0 votes
1 answer 20 views
20 views
Problem: I am very new to Selenium and Java both. I am trying to select and get the dropdown value in a Selenium WebDriver using the Java. The HTML Code is as below: <select class="form_input_select bx-def-font" name="Sex[0]"> <option value="Male">Man</option> < ... it only shows _Others Kindly help me to solve above issue. I am unable to fix above issue after working on it for more than 3 days.
asked Jul 9, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 15 views
0 votes
1 answer 16 views
16 views
Problem: org.testng.testngexception: cannot find class in classpath:
asked Feb 18 Ethan ross 1.8k points
0 votes
1 answer 9 views
9 views
Problem: I am trying to launch Mozilla but still I am getting this error: Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, I am using Selenium 3.0.01 Beta version and Mozilla 45. I have tried with Mozilla 47 too. but still the same thing.
asked Feb 15 Ali 5.1k points
0 votes
2 answers 241 views
241 views
Problem : Facing following Selenium Webdriver error the path to the driver executable must be set by the webdriver.chrome.driver system property
asked Nov 15, 2019 peterlaw 6.9k points
0 votes
1 answer 5 views
5 views
Problem : We're sorry, but your computer or network may be sending automated queries.
asked 4 days ago Shovo210 3.1k points
0 votes
1 answer 82 views
82 views
Problem: I think my Jenkins would ssh in and execute the commands described in a specific job which is running. Currently I want to run my Selenium Webdriver tests but unfortunately it informs me that I have many errors while trying to launch the firefox. I am also ... 45000 ms. Firefox console output: [testng] Xlib: connection to ":0.0" refused by server [testng] Xlib: No protocol specified
asked Jul 11, 2020 Raphael Pacheco 4.9k points