34 votes

How can Internet Explorer 5 be emulated in 2020?

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.
user avatar
  • 441
20 votes
Accepted

How can Internet Explorer 5 be emulated in 2020?

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 ...
user avatar
  • 30.8k
18 votes

How can Internet Explorer 5 be emulated in 2020?

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 ...
user avatar
14 votes

How can Internet Explorer 5 be emulated in 2020?

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.
user avatar
12 votes
Accepted

Is it a bad practice to use implicit wait in Selenium Webdriver? Should one use only explicit wait?

Short answer: Yes it is a bad practise, unless you have a very very very good reason, do not use implicit wait. This Stack Overflow answers really puts the difference in great detail. (read this!) I ...
user avatar
9 votes
Accepted

Is Cypress set to replace Selenium as the preferred tool for automating web applications?

In our last project we also evaluated different tools among these were also Cypress and Selenium. At the end we decided for Selenium, because we were testing front end applications and for us Cross-...
user avatar
  • 1,173
7 votes
Accepted

How can I bring Chrome browser to focus when running a Selenium test using ChromeDriver on Mac?

If you're talking about bringing the browser's window within the OS to the foreground. Selenium cannot do that. You need to introduce a library that is able to automate actions on an OS level. ...
user avatar
  • 884
7 votes
Accepted

Selenium Web driver and Mozilla Firefox Compatibility

According to The WebDriver Sampler: Your Top 10 Questions Answered article the information can be obtained from Selenium Changelog, for instance for Java client libraries: v2.52.0 ======= ...
user avatar
  • 12.6k
7 votes

How to switch from one tab to another tab in chrome

Steps to work with tabs in the same browser: Open a new tab using Ctrl + t Driver control automatically switches to the newly opened tab Perform the required operations here. Next switch back to the ...
user avatar
  • 6,749
7 votes

Is Cypress set to replace Selenium as the preferred tool for automating web applications?

Probably not, mainly because: WebDriver is a W3C Spec WebDriver supports all major programming languages WebDriver is supported by all major browser vendors WebDriver is 100% open-source Cypress ...
user avatar
6 votes

How to automate UI testing of an app using a Google login

We have found that dealing with third party software in CI/dev environments was a great source of intermittency/failure and pain. So in our CI environments, we always create stub services for third ...
user avatar
  • 146
6 votes
Accepted

Selenium alternatives

Selenium webdriver is W3C standard for browser automation, so any "better alternative" is a niche solution. "Record and play" tools may generate "tests" for you. Of course you will lose all the ...
user avatar
6 votes

What are the things that one must consider while learning Selenium Webdriver Automation framework?

This is going to be blunt. I don't know a not-blunt way to say this. First, learn to code. Working with Selenium, no matter what your toolkit happens to be, is writing code. If you don't understand ...
user avatar
  • 30.8k
6 votes
Accepted

Is the Page Object Pattern the ideal approach for browser automation for a website with a frontend that has nested frames?

Yes, Page Objects seem the right direction to encapsulate the frame in frames details from the test. Page objects are a classic example of encapsulation - they hide the details of the UI ...
user avatar
6 votes

Are test-specific selectors a good idea?

I would say it is always a good idea from the standpoint of automated tests development efficiency. Unused attributes (you call them tags but they are rather the attributes) cannot be really ...
user avatar
  • 11.4k
6 votes

Are test-specific selectors a good idea?

tl;dr: class="menu-link" Putting test-specific code in production adds complexity to the production code and only helps QA. Instead, use it as an opportunity to make the production code better ...
user avatar
  • 161
6 votes
Accepted

How do I enable ChromeDriver to use browser cache or local storage with selenium python

Yes, you are right, from Chrome capabilities documentations Use custom profile (also called user data directory) By default, ChromeDriver will create a new temporary profile for each session. ...
user avatar
  • 186
5 votes
Accepted

Selenium - advantages and disadvantages of using Python vs C#

To play a devil advocate, if you try Python, you will find that you are substantially more productive because of dynamic typing. Python just works much harder to improve productivity of the programmer,...
user avatar
5 votes

Is it reasonable to use Selenium RC over WebDriver if the former seems more suitable for the task?

Webdriver is not only more modern. It is future W3C standard. Being able to click on hidden links seems like a misfeature. I would use old version only if newer version was seriously lacking ...
user avatar
5 votes

How do you block Google Analytics from Selenium automated visits?

It's not very well documented, but you can also implement request blocking by passing the host-resolver-rules option to chrome and mapping the domain to localhost or an invalid IP. Something like this ...
user avatar
5 votes
Accepted

What language/protocol do web browsers use for accepting automation requests?

The JSON Wire Protocol is on it's way to becoming accepted as a W3C standard. This means that moving forward, the vendors behind browsers will have much more incentive to implement and maintain ...
user avatar
  • 884
5 votes

Can NUnit be used for Functional and Regression testing?

Yes, you can use NUnit for functional testing. But still it is a unit-testing framework. No, you are not creating unit-tests by using a unit-testing framework to write functional tests. A unit-test is ...
user avatar
5 votes
Accepted

how do perform menu list selection in web application using selenium?

You can use the Actions API for that, given that the browser you use supports it. The following should do the trick with Chrome: Moves the mouse over the "Admin" button Waits until the "User ...
user avatar
5 votes

Should I offer my client free code maintenance?

Does your competitor offer something similar and if not, why not? Really in business nothing is free. Charge extra upfront during develop to cover the costs longterm Offer a subscription on ...
user avatar
5 votes

Should I offer my client free code maintenance?

Assuming this decision is up to you, if you think you can easily maintain the existing scripts in the short term, 'free' might be reasonable to help build the relationship with this client. However, ...
user avatar
  • 466
5 votes

Handling hidden elements in Selenium

To click on a hidden element, you can use execute_script with the parameter "arguments[0].click();" Code example: element = driver.find_element_by_xpath("//input[@id='firstname']") driver....
user avatar
5 votes
Accepted

How to verify if a web page has been properly loaded or not?

This is an incorrect assumption. A webpage loads as follows in generic terms: Server content is received by the browser. Rendering begins starting with objects and then styles from a layout as in ...
user avatar
  • 1,663
5 votes

Canonical way to define page objects/locators in big enterprise level automation projects?

It will depend on your circumstances. Generally I consider categories such as: common identifiers used throughout the application. Examples may include login, logout, help, submit button, etc. ...
user avatar
5 votes
Accepted

Which approach should be applied when automating stories? What are the approaches or methodologies for it?

Normal approach should we automate only functional flow not caring about the UI things like font of text, font type of text, color of text, background color, images, different panels on page etc. ...
user avatar
  • 584
5 votes

How can Internet Explorer 5 be emulated in 2020?

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

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