Questions tagged [browser-automation]

Questions regarding automation of web applications for testing purposes according to specific of used web browser.

Filter by
Sorted by
Tagged with
26
votes
11answers
63k views

How can I reduce the execution speed in webdriver so that I can view properly what is happening on browser?

I want to reduce the speed for execution of script so that I can view the execution properly on browser. I want do this in webdriver.
22
votes
7answers
100k views

Selenium: reuse existing browser session, instead of opening new windows?

This has been asked a million times on the web, but there's no clear cut answer. I tried "-browserSessionReuse" today without any luck; my tests keep spawning new browser windows. X:\QA\Automation\...
14
votes
3answers
11k views

Is Selenium the right tool for browser compatibility testing?

I have been seeing a lot of customers pushing for browser compatibility testing using Selenium. Was wondering whether this is really necessary. The push is mostly due to Selenium grid supporting multi ...
11
votes
5answers
3k views

How can I switch from manual testing to writing automation?

I am working hourly for low wage as a QA intern/tester. I want to learn more about this field. I have already graduated, so everything I have learned is self taught or learned somehow on the job. At ...
11
votes
3answers
8k views

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

I was reading up on implicit and explicit waits and found the following two statements: Implicit wait is not considered a good practice because different browsers have different loading times and ...
10
votes
5answers
14k views

Testing Page Layout with webdriver

Has anyone tried to test the page layout of a website using webdriver? To be specific, using webelement.getPosition() and webelement.getDimension(). Shouldn't these two methods be enough for testing ...
10
votes
5answers
18k views

How best to test file download links using Selenium

On a website I am testing we have various links that download PDF files to the users computer. Our selenium suite runs nightly on bamboo, if we were to download the various files overnight it ...
9
votes
4answers
522 views

How to test the test scripts?

Once an automation test is created, how do I test it and make sure the test does what its supposed to do? I can easily test the scenarios where test passes, but how to go about the ones that fails due ...
9
votes
5answers
39k views

Selenium 2 element.click() is unreliable

I am using Selenium 2 2.16 build. I've been running into problems where I get a variable response to a click() call, where sometimes the click activates the behaviour behind the element (new page ...
8
votes
7answers
2k views

Should I offer my client free code maintenance? [closed]

I am working for a small testing consultation firm. We are trying to compete against other testing consultation companies. Soon, I will finish my deployment at a client site; the nature of my work ...
8
votes
4answers
240 views

Where does Automation creation happen w/in the Development Cycle?

I’m a Software QA Engineer at a small web development company and I need help wrapping my brain around implementing a new process. As of recently, my shop only handled ‘one-offs’. We would work on ...
8
votes
2answers
2k views

Your suggestions for writing reliable Web UI automation

Web UI automation is unreliable. I presume it is possible to increase the reliability of Web UI tests. One such advice would be to put an abstraction layer on top of your test that does actual DOM ...
8
votes
3answers
5k views

Appium vs. AndroidDriver + IPhoneDriver in Mobile Automation Tests

I have been writing Selenium Browser automated tests and now I would like to begin writing mobile browser automated tests for Android and IPhone. I am deciding between the Appium framework and the ...
8
votes
5answers
11k views

How do you block Google Analytics from Selenium automated visits?

Basically, we have a javascript integration on client's webpages. We don't have much (or any) control of the deployed environment, hence the only way to test our integration is truly working is using ...
8
votes
2answers
857 views

Canonical way for multi-session browser testing in Protractor

The Question: What is the canonical way to write multi browser window tests in Protractor - the tests that involve multiple sessions fired up interacting with one another? The Story: The main ...
7
votes
5answers
516 views

Requesting name and/or id for better Selenium testability

I'm testing an application using Cucumber + Java + Selenium and I'm seeing that, most of the type, elements don't have a name, nor an id. This is the case for almost every component on the page but, ...
7
votes
4answers
2k views

Selenium alternatives [closed]

I found lots of information about this topic, however, it wasn't really up to date. I'm interested if there is a better alternative to Selenium WebDriver for a Web Application/Windows/Chrome/Mostly ...
7
votes
4answers
7k views

what is the best way to write automated end to end user scenarios?

When automating user scenarios, we typically cover an end-to-end user flow. Unit testing recommends that each test method should be independant and only test one thing. But things are different in ...
7
votes
1answer
4k views

What Is the Best Way To Mock Browser Time and Time Zone in Selenium? [closed]

I like to run Webdriver tests with altered time and time zone. I see two approaches ahead: 1) Using a mocking library like SinonJS or TimeShift.js. 2) Using system libraries like libfaketime/...
6
votes
3answers
185 views

Method and way to highlight the validation message in the web page by using Selenium IDE

Is there is any way to highlight the validation message by using Selenium IDE? Example: During login when the user passes the invalid input the validation messages and login will be failed. I want to ...
6
votes
7answers
7k views

How we can verify whether webpage is refreshed or not?

Suppose a webpage has a functionality, it refreshes the whole webpage after a fixed time interval and nothing changes on the webpage. How we can test this with automation?
6
votes
3answers
2k views

Future of DOM based UI testing

I work with Selenium for quite a while now and was very happy with it for some time. However recently, I get more and more projects where I see extensive use of JavaScript. For example webpages ...
6
votes
1answer
3k views

Read requests and responses made by browser on naviagating a web page in C# webdriver

I wants to read all the requests and responses made and get by the browser on navigating on a page. For example: If I navigate to http://www.yahoo.com then we observe that browser is making a lots of ...
6
votes
3answers
948 views

Test, Improve performance of WebDriver Automation framework

I have designed a hybrid(keywords and data in same excel sheet) framework using WebDriver+Java+TestNG+Maven. I am using PageFactory, Singleton Pattern . I am using different type of HTML locators in ...
6
votes
2answers
984 views

Include assertions/expectations within the Page Objects, yes or no?

Martin Fowler favors having no assertions in page objects however is not definitive on the subject: Advocates of including assertions in page objects say that this helps avoid duplication of ...
6
votes
5answers
68k views

selenium.ElementNotVisibleException: Element is not currently visible

I am working on selenium, while running Java code I tried to access a text box from the web page but selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted ...
6
votes
2answers
1k views

how to implement a given logged in user role through UI automation?

As suggested on StackOverflow I am posting this question here as well. I am having trouble how to implement the Given step (with SpecFlow for example) of a logged in user role throught Web UI ...
6
votes
1answer
6k views

Testing ExtJS UI with WebDriver

Our Web app is using ExtJS framework for rendering UI. However, ExtJS-rendered UI is hard to test automatically because: For most clickable elements, ExtJS uses generated ids like "ext-gen-345" ...
6
votes
1answer
55k views

How to switch-handle-close particular popup window, When multiple popups are opened?

I know how to switch to single popup window, but I do not know how to switch particular popup window when you have more popup windows. Scenario is: Go to the each and every popup Get the title ...
5
votes
4answers
35k views

WebDriver: navigate to new browser window

How do I open a new browser window in Selenium WebDriver? I'm using C# client drivers, but if you know with any language, I should be able to find the correct class/method in C#. On Stack Overflow, ...
5
votes
3answers
366 views

Is browser version matrix a thing of the past?

Microsoft announced that they will automatically update users to the latest version of IE if they have automatic updates turned on (this is a change from before where people had to explicitly accept ...
5
votes
3answers
2k views

Can NUnit be used for Functional and Regression testing?

Now, here the confusion starts. I was creating some test cases using Selenium WebDriver with C# and thought of using a testing framework. My task is to create functional test cases which can later be ...
5
votes
4answers
2k views

What tools work well for automating .NET 4.0 web sites using web forms with dynamic data?

What would be the best solution to accommodate automated testing of web forms with code-behind (.NET 4.0)? Specifically, we need a solution that can automate web form testing and handle dynamic data ...
5
votes
4answers
2k views

What are the good free mouse and keyboard automation programs?

I know about autoit and about autohotkey but I am not sure that they are the same. What other good automation programs are there? Should I use different programs for automatic browser mouse clicks and ...
5
votes
1answer
197 views

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

Background: As automation testers in selenium world, we have to work on multiple languages/frameworks(wrappers over selenium) in different projects however there is an one thing which remains common ...
5
votes
1answer
433 views

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

The WebDriver API allows browsers to be automated, such as for end-to-end testing. Specific implementations exist, such as the standalone ChromeDriver or InternetExplorer Driver executables or the ...
5
votes
1answer
5k views

What is the max number of threads allowed for running TestNG tests in parallel?

I’m trying to run TestNG tests in parallel, right now I’ve set “parallel=tests” & ‘thread-count=25’ but I see that only 10 threads are running at a time. Is this testNG’s thread limit? Is there ...
5
votes
4answers
1k views

What to ask programmers before automating with Selenium

What points should I discuss with frontend programmers when preparing a product on which, as a tester, I will use Selenium to automate? I am referring to things like, no dynamic ids for elements etc. ...
5
votes
3answers
3k views

Issue with losing focus of “hover” command when the mouse is outside of the active window

If I automate mouse actions using Selenium2/Webdriver in combination with Firefox 12, I can easily get the "mouse" to move to and hover over a context menu so the sub-menus are seen. However, if I ...
5
votes
1answer
417 views

Selenium Grid2 - IOException thrown while closing Closeable.

I am executing my Selenium tests against a Grid server, hosted on a different machine. My grid invocation is (bat file): cd c:\ start java -jar c:\selenium-server-standalone-2.46.0.jar -role hub -...
5
votes
1answer
3k views

Handling different input fields using Robot Framework

I am writing an automation test script using Robot Framework & Selenium2Library for testing our web application (I am writing test cases in .txt format) I am having a problem on handling two ...
4
votes
3answers
549 views

Is it a good idea to learn Selenium RC alongside Webdriver

I have recently started exploring Selenium. According to the experts future lies in Selenium Webdriver. But my question is being a predecessor should I also learn Selenium RC? Will it be worth ...
4
votes
4answers
3k views

Any one have experience with frameworks using webdriver in Visual Studio?

I'm using webdriver to automate our browser testing, I have some scripted tests already where I am using Visual Studio and while I don't mind other formats I'm looking for a good supportable framework ...
4
votes
4answers
4k views

How to determine 'reasonable' response times for performance testing?

I have found performance targets (how long web pages take to respond to actions) difficult to introduce into organizations. There seem to be are no clear definitions (in the industry) that are ...
4
votes
3answers
141 views

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

The tests I am doing are on IE8, which is used throughout the company, and doesn't look to be changing any time soon. After testing both pieces of software with the system, it seemed as though ...
4
votes
2answers
3k views

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

We are using a testing framework composed of robot-framework with ExtendedSelenium2Library that our developers are using to write acceptance tests. Our Web site has several auth options, including ...
4
votes
3answers
420 views

Rule of thumb for using wait()

A rule of thumb for using wait() would be before navigating to a different page. For Ex : WebDriverWait(driver,10).until(lambda driver: driver.title.startswith("Submitted!!")) What would be other ...
4
votes
2answers
12k views

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

I want to verify if a web page has been loaded properly. My approach is: Verify the URL is shown as expected. Verify the element at the top left most corner has been shown. Verify the element at the ...
4
votes
5answers
26k views

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

When executing a Selenium test with ChromeDriver, I would like to bring the test browser into focus to see the actions taking place. The way I am able to do that now is by manually clicking the ...
4
votes
3answers
5k views

Alternative to Selenium + PhantomJS

We need to do a headless testing of a project using Selenium + PHPUnit for which PhantomJS is a natural choice. However, they currently have a major issue with the recent Selenium Server and no ...