Hot answers tagged

29

Why test in IE5 if the customer isn't using it? It doesn't sound like they actually want IE5 support. They just want it to work. Test in IE11 Compatibility mode, as that's what they use.


19

Given that the customer insists, I'd recommend using a virtual environment with IE5 installed, and then search for automation solutions that can work in that environment. This will be a challenge: you will need something that can operate on the elderly operating system (I think XP can run IE5, but I'm not sure about anything newer) and preferably something ...


17

Another approach (or part of one). Before proceeding ask for a sign-off on a document that clearly states the security risk this presents to the organization and its customers and that they acknowledge that risk. This might get more attention, though it is obviously a little aggressive (or may be perceived to be that way). Adjust approach as needed for the ...


14

Look around on the internet, e.g. ebay, for Windows machines that are 15-20 years old. I don't like this answer but given the crazy situation I am suggesting it.


5

Here's an idea: Install Linux. I recommend using a virtual machine such as VirtualBox, which can run on a normal Windows box, to install a popular, well-maintained and lightweight system such as Lubuntu or Bodhi. Using a virtual machine means that you can run it as an app on your Windows computer; and this method will shield both the host and guest machines ...


5

There is no way to automate this in a way comparable to your current method. This is due to the lack of comparable automation APIs and basic action feedback. It is possible to manually test this by setting up virtual machines, this can still be done, even for Windows 95, etc. This will not work on public clouds or popular commercial hypervisors but can be ...


4

There are solutions for IE6 and higher, but great scott - IE5 is out of reach, for sure for automated tests. I've found something like this: https://netrenderer.com/ but it doesn't even support https.


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

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


2

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

To add for what others wrote, it is REALLY POSSIBLE to automate tests for IE5. When you run inside VM, you can automate it outside of the VM. I will explain, think about automation that moves the mouse, clicks on specific items on the screen, and compare the screenshot image to the expected results. It should work.


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

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

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

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

In my case, before switch to the new window, a simply thread sleep make thing done. time.sleep(3) # switch to new window


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