IE11 browser is getting crashed when we run a Behat test - behat

I am currently trying to run Behat on Windows 7 with IE11, but when I start doing it IE browser is crashing.
I have used IE drivers 2.46, 2.53 & 3.0 along with selenium drivers 2.46, 2.53.0 & 2.53.1

Seems you have an Invalid Selector Exception.Maybe it doesn't like the type of quote you are using, try using straight quote instead of curly quote.
Please try one of these selectors (use copy/paste):
css:
#emailpopup
or xpath:
//*[#id='emailpopup']

Related

Unable to run WebDriverIo tutorial

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).

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

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

Command line server for IE driver has stopped working dialog window while executing test cases on IE11 wth selenium 2.53

I am running a test suite with more than 500 test cases with selenium 2.53 on IE11 browser.
I am getting error "Command line server for the IE driver has stopped working" during the execution randomly and the execution gets stuck.
I've updated IEDriver from 2.48.0 to v3.1.0.0 & v3.2.0.0 but no luck.
I've also tried to add new key "TabProcGrowth" (value = "0") under "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" but it didn't help.
OS: Windows 7- 64 bit
Selenium Version: 2.53.0.0
Browser: IE
Browser Version: IE 11.0.9600.18537
Any help would be highly appreciated.
i had faced the same issue but with higher version IE Driver 3.6.0
solution:try with different version
IE Driver 3.3.0 has resolved the issue and even use the same version of Selenium.Support -Version 3.3.0
Selenium.WebDriver-Version 3.3.0
Selenium.WebDriver.IEDriver 3.3.0
please refer this link for detailed description of each version https://raw.githubusercontent.com/SeleniumHQ/selenium/master/cpp/iedriverserver/CHANGELOG

Is there a native XPath support in Internet Explorer 11?

I have a problem with my Selenium tests when using IEDriverServer.exe (32-bit). The same tests work fine in Firefox and Chrome browsers, but fail in Internet Explorer 11 with diagnostics:
OpenQA.Selenium.InvalidSelectorException : The xpath expression
'//input[#id='username']' cannot be evaluated or does notresult in a
WebElement
It seems that IEDriver cannot find elements by XPath.
IEDriver version: 2.48.
Is there any workaround for this problem, except changing XPath with CSS locators?
I found a possible reason in comments for a similar problem:
here
Update for IE11 KB3025390 (and latest ones) breaks IEDriver. When uninstall updates IEDriver successfully interacts with WebElements through XPath.

Error using SelBlocks extension with Selenium server

I've been recording/writing Selenium html scripts using the SelBlocks extension. Now we're going to use Selenium server to run the tests in different browsers.
I tried getting the javascript from the SelBlock xpi by extracting it and reference that javascript in my selenium server bat file. When I try to run my bat file with referencing the javascript, i got the error "Line: 777 Error: 'XML' is undefined" when I run it in Internet explorer. This happens as the test script is loaded in TestRunner.
When I try to run it in Firefox, TestRunner hangs just prior to running the script.
i'm using Selenium Server 2.1, Firefox 5 and IE8.
Selblocks is only supported for Selenium IDE. See note about "no language translation" here: Selblocks documentation. Although automated translation would be an interesting area of investigation...
I've tried the same thing (Firefox 4.0, Firefox 7.0, selenium-server-2.0.5.jar, SelBlocks 1.3 installed as a firefox plugin).
Since the -userExtensions way didn't work for me, I installed SelBlocks 1.3 in the firefox profile I use with -firefoxProfileTemplate and -htmlSuite. It looks like selenium server doesn't do anything.
After more than a minute I have:
so even the selenium elapsed timer doesn't tick, and no line gets executed.
My simple test case is here.
Looks like I can't use SelBlocks with selenium-server[version].jar for now?
ANNOUNCEMENT: SelBlocks 2.1 now includes support for Selenium Server. Get the extension file here: https://raw.githubusercontent.com/refactoror/SelBlocks/master/user-extensions.js
Initial browser support is for firefox, googlechrome, and opera.