driver.switchTo().alert().sendKeys("Hello") not working for latest chrome driver- Selenium Webdriver -java - selenium

driver.switchTo().alert().sendKeys("Hello")
The above code for prompt is not working for latest chrome driver with selenium webdriver -java. It didn't throw any error. Except sendkeys all other actions accept(),dismiss() , getText() is working well. I have used ChromeDriver 2.29, selenium-3.3.1, Chrome Browser - Version 56.0.2924.87.

google chrome
Version 59.0.3071.109
chrome driver 2.30
selenium 3.4
i have this version for chrome.
driver.switchTo().alert().sendKeys("Helllo")
is working properly.

This is purely a display issue and the input of sendKeys(...) will be sent after you accept the Alert.
See also the answer in this Chromium issue:
https://bugs.chromium.org/p/chromedriver/issues/detail?id=1120#c11

Related

ITest with different browser version via webdriver

I'm starting to write a test scenario with selenium web driver and test it via different firefox and IE versions. So, I downloaded GeckoDriver and selenium webdriver itself.
The question is, what version of selenium webdriver, firefoxdriver (gecko driver) and IE driver in order to test my scenario in different browser versions?
for example firefox since version 35 and IE since version 7.
Is there any references to see which firefox version works with which gecko driver and webdriver versions?
this will helps you
https://www.browserstack.com/automate/capabilities
better way is to check change log in http://www.seleniumhq.org/download/
exp: for gecko https://github.com/mozilla/geckodriver/blob/release/CHANGES.md
and webdriver https://raw.githubusercontent.com/SeleniumHQ/selenium/master/java/CHANGELOG

Selenium, opening ff browser and automaticly close

Trying to run testng suite compiled jar on remote linux machine.
Problem I have is, if I run tests, FF open url I have defined and after that closing brower, and so on.
org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"name","selector":"username"}
Selenium 2.53.0
FF 45.0
Any idea why my test just open browser and close?
NoSuchElementException is thrown when element does not exist. It may not be the reason for fx crash.
The possibilities are :
Some where in the code you will be closing the driver.
I had faced the same issue earlier.
Try to upgrade your firefox to the latest version.
Try to set the firefox driver using setProperties
System.setProperty("webdriver.firefox.bin","C:\\Users\\AppData\\Local\\Mozilla Firefox\\firefox.exe");
WebDriver driver=new FirefoxDriver();
Follow the link to upgrade or downgrade fx: https://support.mozilla.org/t5/Install-and-Update/Install-an-older-version-of-Firefox/ta-p/1564
Below are some of the helpful links.
Firefox crashes when started by Selenium firefox driver
Which Firefox version is compatible with Selenium 2.53.0?
I was using wrong url without "/" on the end, after I changed all working now.

Selenium 2.53 not working on Firefox 49.0.2

Selenium : 2.53
Firefox : 49.0.2
Windows10 : 32bit
When I execute the selenium webdriver from eclipse get the following error "about:blank&utm_content=firstrun" in firefox
I also faced the same issue. After searching net, I found some of the links where they suggest to downgrade the firefox version. I am using 43.0.1 but you may try 46.0 also.
Selenium WebDriver no longer supports the default Firefox Driver. They are currently working on a new driver, called Marionette, for their new Gecko engine.
More details on Marionette you can find here: Marionette
If you want to use the default driver, you should downgrade your Firefox. Version 45.0.1 works fine for me.

It downloading only Selenium WebDriver 3.0.0-beta2.. 2.53.1 In selenium Web Driver i cant able to Download

Old Version WebDriver I can't able to download At present I am using 46.0 Version in Firefox and WebDriver 2.53.0 in Windows 7. It working Fine. But if I update my browser. I cant able to run the test case, it showing browser error.
I update my Browser 47.0 & 48.0beta and used Selenium WebDriver 3.0.0-beta2 that also showing error. now, the version I cant able to download. I am just struck in this. Any solution there for this??

Error on Adding Chrome Driver in selenium 2.4.2

On adding the below codes in Selenium 2.4.2
System.setProperty("webdriver.chrome.driver","D://chromedriver_win32//chromedriver.exe");
WebDriver driver = new ChromeDriver();
chrome window gets opened but 'some yellow color alert message displayed as' - You are using an unsupported command-line flag:--ignore-certificate-errors. Stability and security will suffer.
Try with an older chrome browser version. Most probably is because of Chrome browser version. some incompatibility issue. what is the currently version that you`re using?
Do the following -
chromeOptions.AddArgument("test-type")