Skip to main content
Share Your Experience: Take the 2024 Developer Survey
46 votes

How do I close the browser window at the end of a Selenium test?

driver.close() and driver.quit() are two different methods for closing the browser session in Selenium WebDriver. driver.close() - It closes the the browser window on which the focus is set. driver....
Sneha Singh's user avatar
6 votes
Accepted

What are the limitations of chrome headless browser?

Headless Chrome is not stable yet in comparison to "full" Chrome. In my opinion there will always be problems with headless vs phantomjs (and others) vs full versions. And so there will always be ...
Piotr Wicherski's 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 ...
mutt's user avatar
  • 1,693
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 ...
Julian's user avatar
  • 914
4 votes

How do I close the browser window at the end of a Selenium test?

In Python, using selenium webdriver for Chrome, I needed to call stop_client() before close(): from selenium import webdriver in setUp(): options = webdriver.chrome.options.Options() options....
Remi's user avatar
  • 141
3 votes

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

I've been looking into this quite a lot over the past few days. By far the simplest way to solve this is to create a driver property, rather than a variable and add a wait to the get. private ...
Chris's user avatar
  • 131
3 votes
Accepted

How to Run e2e tests on multiple browsers in series?

multiCapabilities: [ {'browserName': 'internet explorer'}, {'browserName': 'chrome'} ], maxSessions: 1,
MikeJRamsey56's user avatar
3 votes
Accepted

Not able to use HTTP Basic Auth popup in selenium test case using firefox on Ubuntu/Linux

Thanks for your attention to this post. I finally found the problem when one of my colleague suggested to use VNC to see what's actually going on the linux machine. For debugging, we need to install "...
Krishna Pandey's user avatar
3 votes
Accepted

Do we need to do cross browser testing for minor text changes in blackbox testing?

I think the general answer is "be reasonable". Just because you're doing blackbox testing doesn't mean you should do extra useless testing--in this type of situation, you're likely better off looking ...
c32hedge's user avatar
  • 2,679
3 votes

What are the limitations of chrome headless browser?

I am using headless chrome in version 65 in protractor test execution and I find it pretty stable for a suite of 500+ tests and even for the failed tests screenshots captured are of decent quality and ...
Vishal Aggarwal's user avatar
3 votes

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

I think you can use pure JS to achieve this. The cross-browser way to do it in pure JavaScript is simply to test document.readyState: if (document.readyState=='complete'){ //you can do ...
demouser123's user avatar
  • 3,532
3 votes

Automation testing software for custom browser?

Well, after much trial and error with TestCafe, Nightmare Browser, Nightwatch and Cypress, all of which I couldn't get past the above blockers, I've had a result with old school Selenium!! https://...
Calum's user avatar
  • 91
3 votes

Tree of HTML from JSoup?

Try to use this (children()) instead of getAllElements(). Because when you use the latter one, you get the node itself alongside with its children. Hence you will always be cycling between two methods....
Alexey R.'s user avatar
  • 11.6k
2 votes
Accepted

Cross browser testing and assuming its support

There are 3 approaches to your problem that I know of. Tell people official support is from 69 and up. Others might work but are not tested officially. In case of a bug, you will try fixing it. The ...
Saša Zejnilović's user avatar
2 votes

Strategies for reliably reproducing bugs in a frontend Javascript applications

Get the missing bridge between Devs & Business users -a dedicated professionally experienced QA engineer. Long-term Solution: This is a classic case of burning need of a professionally ...
Vishal Aggarwal's user avatar
2 votes
Accepted

How do I change browser request headers without using a browser extension?

Use an HTTP proxy. HTTP proxies can rewrite intercepted requests by adding, removing and modifying headers. Any Web browser can be configured to use any HTTP proxy. Popular implementations: ...
dzieciou's user avatar
  • 10.5k
1 vote

Not able to create login 401 error on login authentication error https://cis-dev1.manageamerica.com/Account/LogOn

Don't share credentials on public websites, it is not safe In order to perform login: Add HTTP Request sampler and configure it as follows: Add HTTP Header Manager as a child of the HTTP Request ...
Dmitri T's user avatar
  • 13.5k
1 vote

Switched from mobile application testing to Browser testing

Web application need to be tested in manual as well as in automation. Before going into automation part, you have to familiarize with the manual testing to understand about the web components. Then ...
Bhavani's user avatar
  • 724
1 vote
Accepted

How to benchmark browser performance against a given feature

Try the browser embedded developer console, to open it on firefox for example, press the on keyboard: Ctrl+Shift+J or Cmd+Shift+J on a Mac, then click on tab performance, start recording, test your ...
salvatop's user avatar
1 vote

Delay request response in browser

Fiddler from Telerik can be used to do that. Using these examples, you can put in a specified delay in ms per KB uploaded.
Roger Cook's user avatar
1 vote

Can I execute selenium test cases in a real browser through jenkins without grid

Yes, it is possible. Easiest way is to run selenium server on your desktop. You will need to enable connections to your desktop (just on one port to be safe, 4444 by default), and configure selenium ...
Peter M. - stands for Monica's user avatar
1 vote

Can I execute selenium test cases in a real browser through jenkins without grid

Jenkins is a Continuous Integration which integrate with Selenium and let you run tests on server every time a build is ready. The main purpose here is to go headless, so that nothing will be on ...
Dave's user avatar
  • 131
1 vote
Accepted

Guarantee switching to a specific window in Selenium

How To Work with Multiple Windows Some browsers might order windows by the order of being opened, other in alphabetic title order. Suggested solution is to get the list of active windows before new ...
Peter M. - stands for Monica's user avatar
1 vote

Not able to use HTTP Basic Auth popup in selenium test case using firefox on Ubuntu/Linux

You can try sending the credentials in the "Authorization" header using a special URL format like this: [protocol][user:password]@[domain_name] You can copy your homepage url and insert user:...
lauda's user avatar
  • 977
1 vote

Random Selenium WebDriver Tests inconsistently Fail and Pass on IE browser

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-...
Peter M. - stands for Monica's user avatar
1 vote

What can I use to monitor load times not for web pages, but for my browser itself to find what elements make it take so long to load?

Chrome has a task manager; you can at least look at it to see if something in particular is causing a large amount of storage/CPU activity. Beyond that, I suspect you're left with binary search in ...
Kevin McKenzie's user avatar
1 vote

Cross Browser Testing for Website built in Angular Material

Depending on your resources, it might be helpful to have a set of VM's created that have diff combinations of OS's and web browser versions. Determine your threshold for coverage. Look at the latest ...
Chris Gaboury's user avatar
1 vote

What is the best way to have a SpecFlow project run across multiple browsers?

One way we solved this was to have a Given step at the start of each of our features Given I am using <browser> And I am on the Homepage And I click on the Logon Link Then I am taken to the ...
Richard C's user avatar
  • 111

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