• Register
0 votes
160 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 1 view
1 view
Problem: Meta - OS: OSX 10.12.6 (16G29) ~./node_modules/chromedriver/bin/chromedriver -v ChromeDriver 2.32.498537 (cb2f855cbc7b82e20387eaf9a43f6b99b6105061) ~ $ echo $JAVA_HOME /Library/Java/JavaVirtualMachines/jdk1.7/Contents/Home ~ $ node -v v6.11.2 Browser: Chrome Version 62 ... .By, until = webdriver.until; var driver = new webdriver.Builder().forBrowser('chrome').build(); var timeout = 15000;
asked Apr 26 sumaiya simi 43.9k points
0 votes
1 answer 19 views
19 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 4 views
4 views
Problem: This is the code of selenium code to open the chrome browser and closing it. import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.By; public class TC001_Login_Logout { ... .Class.getMethod(Unknown Source)at sun.launcher.LauncherHelper.getMainMethod(Unknown Source). at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
asked 5 days ago anika11 32.2k points
0 votes
1 answer 3 views
3 views
Problem: Here I am trying to run my Selenium Webdriver tests, but it tells me that I have errors in launching firefox. The end idea is to run the web tests on this box entirely, and also take some screenshots of errors.
asked Apr 25 ummeshani 9.5k points
1 vote
1 answer 12 views
12 views
Problem: How to tackle this issue?? Java.lang.noclassdeffounderror: org/openqa/selenium/webdriver.
asked Mar 30 PkGuy 23.5k points
0 votes
1 answer 24 views
24 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 11 views
11 views
Problem: Trying to get selenium to work with Python 3 for web scraping purposes: from selenium import webdriver chrome_path = r"/Library/Frameworks/Python.framework/Versions/3.6/bin/chromedriver" driver = webdriver.Chrome(chrome_path) I get the following error message: selenium.common ... my system. The other asker apparently didn't have it on their computer. I'm running latest version of Mac OS.
asked Apr 24 sumaiya simi 43.9k points
0 votes
1 answer 4 views
4 views
Problem: When I run code using Firefox driver following error is given: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: Potential driver version mismatch ignored due to missing DLLs igd10umd64 ... (20, TimeUnit.SECONDS); } } Binary Version Details : FireFox : 60.0 Selenium Jar : 2.45 GeckoDriver : 20.1
asked Apr 23 ochena 23.3k points
1 vote
1 answer 26 views
26 views
Problem : When i'm trying to run the test suite, am getting this exception. We are using maven project here and i am done with refreshing, cleaning, reinstalling testNG and then imported the maven projects but then also am getting the same exception. org.testng.TestNGException: Cannot find class in classpath: EmpClassPlease suggest any ways that am missing here.
asked Apr 7 Sabbir Hossain 14.6k points