Hot answers tagged

4

Microsoft has changed the behavior of IE11, and broken the IE driver in the process. The problem is with the browser's behavior change. There is no clear-cut workaround yet. You could try setting the initialBrowserUrl capability via the InternetExplorerOptions class, but there's no guarantee that it will work. InternetExplorerDriverService ieDriverService = ...


3

Version 8? Wow, that's old! It doesn't make much sense to have to resort to all these workarounds. Instead, your company should use a current version of LoadRunner.


3

Use JavaScriptExecutor instead of the SendKeys: String cardNum= "4111111111111111"; WebElement inputField= driver.findElement(By.id("cardnum")); JavascriptExecutor js= (JavascriptExecutor) driver; js.executeScript("arguments[1].value = arguments[0]; ", cardNum, inputField);


3

In your code you should instantiate two drivers. One instance for Chrome and the second one for IE. Now you can operate with both the browsers. Below is the example in Java: public static void main(String[] args) { // Configure both drivers System.setProperty("webdriver.chrome.driver", "Path to your chromedriver"); System.setProperty("webdriver....


2

Have you tried setting EnsureCleanSession to true? DesiredCapabilities cap = new DesiredCapabilities(); cap.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION, true); OR cap.setCapability("ie.ensureCleanSession", true); When set to true, this capability clears the cache, cookies, history, and saved form data. When using this capability, be ...


2

Rather than accessing the element by Id try doing it with xpath. I can see the there is an tag attached to this element. So you could make use of that.So for example if your checkbox is setup like this: <div id = "divContainer"> <input class="check-box" data-val="true" data-val-required="The Is Active field is required." id="IsActive" name="...


2

In your case I think you should wait for the webelement to be visible before you try to find it. WebDriverWait wait = new WebDriverWait(driver, 30); wait.until(ExpectedConditions.visibilityOfElementLocated(By.tagName("tag_name")));


2

Friends, i got the resolution .To get rid this problem we can have following code required in our code: DesiredCapabilities caps = DesiredCapabilities.internetExplorer(); caps.setCapability("ignoreZoomSetting", true); caps.setCapability("nativeEvents",false); driver = new InternetExplorerDriver(caps); I believe that we all are keeping the minimal ...


2

The most reliable method I've found is to configure the VMs to auto-logon with an administrator-level login and disable screensaver and user access control. This effectively means that whenever the vm is on, it is logged on and there is a desktop session running. You may need to convince your employer's network management people to let you do this for the ...


1

This action changes the browser focus back to the OS and away from Protractor. I see 2 possible solutions: Try to side-step this prompt by instructing the browser to download files to a specific location. Configure the browser (in this case IE) to save the file automatically without prompting: IE example . With Chrome it is possible to set this as part of ...


1

Depending on what you are testing (i.e. the actual process of using the upload control, or just the ability to upload / validate a file) you can skip the upload popup entirely. This also means you don't need autoit (which will mean you can run the tests on unattended (locked) machines. e.g. Generally any upload button will be something like the below when ...


1

Configure the IE browser like given in the link and try. Make sure your IE version is more than 7. In Katalon - go to Project -> Settings -> Execution -> Default -> IE – click on Add and add these values {name = ignoreProtectedModeSettings, type = Boolean, value = true} Followed steps here - https://docs.katalon.com/display/KD/Internet+Explorer+...


1

MicrosoftWebDriver.exe is the Edge driver, not IE driver. As others have mentioned the IE driver is called IEDriverServer.exe. As an example of a launcher for IE: System.setProperty("webdriver.ie.driver", "C:\\DriverFiles\\IE\\x32\\IEDriverServer.exe"); // custom stuff IE needs in order to work (some only needed for Win10+) DesiredCapabilities ...


1

Change the following line as System.setProperty("webdriver.ie.driver", "C:\\work\\IEDriverServer.exe"); The file name is IEDriverServer.exe and not MicrosoftWebDriver.exe. Check the path for IE driver.


1

A couple thoughts: Drivers may render pages differently depending on window size. If IE is broken using the same window size, try maximizing the browser window. You didn't say whether you actually checked the page source in your IE test to confirm that the element it claims to not be able to find is actually there. In AJAX-heavy pages, I've seen different ...


1

Do you use explicit or implicit wait? Converting my tests to 100% explicit waits eliminated flakiness like you describe. See also https://stackoverflow.com/questions/15164742/combining-implicit-wait-and-explicit-wait-together-results-in-unexpected-wait-ti by Jim Evans, member of the Selenium team


1

This is one of the open issue Work around is : Turn off the HTTP-only flag when running my site in testing mode I use Django for my server so I had to create a special test_settings.py file with SESSION_COOKIE_HTTPONLY = False in it I borrow answer from here


Only top voted, non community-wiki answers of a minimum length are eligible