Iam trying to test simple rediffmail login page by sending username and password using Chrome and Explorer in Eclipse. Till yesterday, it was working fine but suddenly same code not working in Explorer(working fine in Chrome). Getting the "Configuration Failures: 1" error.
-Windows Operating system : 7
-Internet Explorer version : 8.0
-IEDriverServer_Win32_3.0.0
My code is follows :
System.setProperty("webdriver.ie.driver","C:\\IEDriverServer_Win32_3.0.0\\IEDriverServer.exe");
driver = new InternetExplorerDriver();
driver.get("https://mail.rediff.com/cgi-bin/login.cgi");
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.findElement(By.xpath("//*[#id='login1']")).sendKeys("sample.3400");
driver.findElement(By.xpath("//*[#id='password']")).sendKeys("edutorignitor12345");
I tried to google the issue but no solution.
NOTE: Element Locators are correct as same code is running with Chrome.
I had faced a similar issue. Turned out that the driver needed to be updated. Try that.
Related
I am not able to figure out why selenium API's are not executing in chrome browser, while chromedriver and chrome version is identical.
Chromedriver Version -> 91.0.4472.19
Chrome Version-> 91.0.4472.124
Output: Chrome launches and "data;" comes written in URL Bar. Nothing happens after that and test continues in running state.
I have tested with chromedriver 89,90,91,92. But nothing seems to be working.
Have anyone faced this issue ever where chrome and chromdriver version were same but browser is not executing selenoum API?
Code:
Browser name is passed from testngXML file.
ChromeOptions options = new ChromeOptions ();
options.setBinary("C\\ProgramFiles(86)\\..\\chrome.exe"); (in this location, I have chrome 91)
.......
......
System.setProperty("webdriver.chrome.driver", "src\\main\\resources\\chromedriver.exe"); (Here I have chromedriver 91)
This issue was related to somehow chrome policies. In my corporate system, there was a policy adding in chrome browser from admin (In every 1 hour) which was marking "disableChromeDevToolBar" as true. This was making the inspect (ctrl+shift+I) also greyed out.
I tried to fix this part, by changing the "disableChromeDveToolBar" value from 1 to 0 ([Windor+r-> regedit-> HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome]).
This made the inspect and selenium API execution working in the chrome browser.
Note: I did not do any change in chrome browser and chromedriver. Issue was purely because of this policy.
Trying to get that policy detail from support team, if I can find out, I will update here.
I'm trying to follow the WebDriverIo tutorial at http://webdriver.io/guide.html .
After setting up the Selenium server, when I try executing the test node script (step 7 in the tutorial), selenium warns me of some errors (see screenshot for full log), and I don't get any output returned.
Steps to reproduce:
I start the Selenium server
When I try running the node script, this happens (clock to zoom):
At this point a Firefox window opens automatically, and remains blank.
I'm running Firefox v52 and Selenium 3.0.1. I downloaded Geckodriver from https://github.com/mozilla/geckodriver/releases
Any obvious thing that I'm missing? I'm very new to Selenium and browser automation, forgive the generic input :)
If you have been here to get your Windows release of gecko driver : https://github.com/mozilla/geckodriver/releases, you may have miss this message :
"IMPORTANT: If you use geckodriver with Selenium, you must upgrade to
Selenium 3.3 since this release aligns HTTP responses with the
WebDriver standard."
(I can see you are in v3.0.1).
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??
I have a selenium grid with nodes on virtual machine. I can connect, open browser and close it but when i try navigating to a page it hangs on Executing: [get: http://google.com]
I use the latest verions of selenium, chromedriver and java.
Declaration:
DesiredCapabilities capabilities = DesiredCapabilities.Chrome();
driver = new RemoteWebDriver(new Uri(#"http://xxx.xx.xx.xxx:6000/wd/hub"), capabilities);
then i try to use it when i click a button on my win form:
driver.Navigate().GoToUrl("http://www.google.com");
I can see the node gets the command and logs Executing:[get:htttp://www.google.com] but just hangs. Url doesn't change in browser(its "data:," all the time )
I use windows 7 x64 and try to control browser on windows 7 x32. (if i connect to node on my pc the code works fine)
Any ideas?
Thanks!
I am seeing the exact issue with Safari (python). I am using selenium standalone server v2.47.1. My current workaround is to use JS:
"driver.execute_script("window.location.href = '{0}';".format(url))"
I also observed that if you don't set a homepage on Safari or have it default to load the homepage on new tab/window, the webdriver acts up and hangs on 'get' method.
I am trying to run Selenium Webdriver script in IE8 and soon as the page load is complete I am getting 'Error on Page', which eventually stops the execution of the script. Please note that if I launch the same URL manually, I don't see any error.
This is what I have tried so far
Unchecked Enable Protected Mode
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
driver = new InternetExplorerDriver(capabilities);
driver.get(AppURL);
driver.navigate().to("javascript:document.getElementById('overridelink').click()");
Nothing worked so far, however my script runs perfectly for FF and Chrome.
Please let me know if there is any possible solution to this issue, I am using Windows 7
This is expected. Selenium won't run properly unless you have the protected mode disabled in the internet explorer options.
Disable it and it should work fine.