selenium-iedriver

Protractor Test Cases Not Working in Internet Explorer 11

拟墨画扇 提交于 2019-12-02 18:10:00
问题 Protractor Test Cases Not Working in Internet Explorer 11 on Windows 10 Enterprise Protractor.conf.js has below configuration. seleniumAddress: 'http://localhost:4444/wd/hub', seleniumArgs: ['-Dwebdriver.ie.driver=node_modules/protractor/selenium/IEDriverServer.exe'], multiCapabilities: [ { browserName: 'internet explorer', 'platform': 'ANY', 'version': '11' } ] When I try to run either ng e2e command to run the test cases, I get Driver.version: unknown exception like below. **Exception Trace

How does the registry entry HKEY_LOCAL_MACHINE\…\FEATURE_BFCACHE for InternetExplorerDriver solves the Internet Explorer 11 issue?

橙三吉。 提交于 2019-12-02 05:11:56
问题 So I am automating a web application in IE11 (Three cheers for government contracting!) and I am following the instructions on the Selenium Wiki to configure the thing because we have had a bunch of weird and wonky behavior. I am at this step here and well, it says that I have add a registry key to help maintain a connection to between the driver and the browser: For IE 11 only, you will need to set a registry entry on the target computer so that the driver can maintain a connection to the

Single click in selenium acts as double click

佐手、 提交于 2019-12-02 03:34:16
问题 I have a simple code where I click on a link and it opens up a new window. But while executing the script, single click acts as double click on the same element and 2 windows are opened. I am using InternetExplorer driver String baseURL = "URL_to_opened"; DesiredCapabilities cap = DesiredCapabilities.internetExplorer(); cap.setCapability(InternetExplorerDriver.NATIVE_EVENTS, false); cap.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true); WebDriver

Single click in selenium acts as double click

半腔热情 提交于 2019-12-02 02:09:16
I have a simple code where I click on a link and it opens up a new window. But while executing the script, single click acts as double click on the same element and 2 windows are opened. I am using InternetExplorer driver String baseURL = "URL_to_opened"; DesiredCapabilities cap = DesiredCapabilities.internetExplorer(); cap.setCapability(InternetExplorerDriver.NATIVE_EVENTS, false); cap.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true); WebDriver driver = new InternetExplorerDriver(cap); driver.get(baseURL); driver.findElement(By.xpath("Element to be

CreatePlatformSocket() returned an error: An invalid argument was supplied. (0x27t6) Port not available. Exiting… in Selenium Webdriver

孤者浪人 提交于 2019-12-02 00:32:55
问题 I am getting the below errors when running Selenium script. Recently I did setup Selenium grid and started noticing after that. I stopped the Hub and restarted the system also but still having same issue. Also tried with latest Chrome and IE Drivers. Chrome Error: Starting ChromeDriver 2.28.455520 (cc17746adff54984afff480136733114c6b3704b) on port 11055 Only local connections are allowed. [0.147][SEVERE]: CreatePlatformSocket() returned an error: An invalid argument was supplied. (0x2726) [0

Why do we need to set the System Property for Chrome And IE Browser and Not For Firefox Browser

旧巷老猫 提交于 2019-11-30 14:04:54
For Chrome, public class Chrome { public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "E://chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.get("http://www.google.com"); } } for Firefox, public class Firefox { public static void main(String[] args) { WebDriver driver = new FirefoxDriver(); driver.get("http://www.google.com"); } } Why do we need to specify the system.setProperty for Chrome and IE? I had also same question, but after digging I found, WebDriver uses native browser approach. Selenium offers inbuilt driver for Firefox but not for

Unable to launch IE browser in selenium webdriver

旧街凉风 提交于 2019-11-30 10:20:22
I have written a sample code to launch IE browser and load google page. public class Sample { public static void main(String[] args) { // TODO Auto-generated method stub System.setProperty("webdriver.ie.driver","H:/IEDriverServer.exe"); WebDriver driver=new InternetExplorerDriver(); driver.manage().window().maximize(); driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS); driver.get("http://www.google.com"); } } But when I run this script it launches browser and it gets closed immediately (less than 2 sec) without prompting any error and the script wont terminates. This is what I can

Why do we need to set the System Property for Chrome And IE Browser and Not For Firefox Browser

廉价感情. 提交于 2019-11-29 18:37:22
问题 For Chrome, public class Chrome { public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "E://chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.get("http://www.google.com"); } } for Firefox, public class Firefox { public static void main(String[] args) { WebDriver driver = new FirefoxDriver(); driver.get("http://www.google.com"); } } Why do we need to specify the system.setProperty for Chrome and IE? 回答1: I had also same question, but after

How to ignore zoom setting

爷,独闯天下 提交于 2019-11-29 16:25:53
IE ignore zoom setting doesn't work, my code as below, why it doesn't work? I got the error message (selenium.common.exceptions.SessionNotCreatedException: Message: Unexpected error launching Internet Explorer. Browser zoom level was set to 125%. It should be set to 100%) from selenium.webdriver import Ie from selenium.webdriver.ie.options import Options opts = Options() opts.ignore_protected_mode_settings = True driver = Ie(options=opts) No , while working with InternetExplorerDriver you shouldn't ignore the browser zoom settings. As per the Official Documentation of InternetExplorerDriver

HTTP Status: '500' -> incorrect JSON status mapping for 'timeout' (408 expected) while clicking element with IEDriverServer Selenium and Java

孤人 提交于 2019-11-28 14:35:47
Below are the details related to my flow - Page - 1 - Login to Web page After login, a URL Appears (Lets call it Element 1) After clicking Element 1, web page loads again and there I need to click on a different element, (Lets call it Element 2). Problem - Driver gets stuck, either Element 1 is not getting clicked or after adding sufficient wait Element 1 gets clicked but now driver gets stuck at this flow as you can observe from below code, once clickurl.click() is called then after 10 seconds I should get a message that " Sleep Completed.. Now we return to calling class " But instead I get