With browser automation a web browser can be instructed to repeat the same, possibly long task automatically or at will. In daily use browser automation can be used to fill forms, extract data from web pages, or provide authentication to a service. Browser automation is often used for automating testing of web applications. The same tests can be repeated after each change and in different browsers to verify correct behavior.
Questions tagged [browser-automation]
1104 questions
146
votes
5 answers
How to find out which JavaScript events fired?
I have a select list:
When I select Closed the page reloads. In this case it shows closed tickets (instead of opened).…

Željko Filipin
- 56,372
- 28
- 94
- 125
70
votes
4 answers
AttributeError: 'WebDriver' object has no attribute 'find_element_by_xpath'
from selenium import webdriver
import time
test = webdriver.Chrome()
test.get('https://docs.google.com/forms/d/e/1FAIpQLSeYUmAYYZNtbU8t8MRxwJo- d1zkmSaEHodJXs78RzoG0yFY2w/viewform')
time.sleep(5)
Name = 'kuch bhi'
last =…

fireslayer47
- 803
- 1
- 3
- 5
52
votes
12 answers
Why is Cypress saying my element is detached after just running a get command?
Objective:
I want to click on a particular element on the page using an accessibility selector with cypress
Code
cy.findAllByRole('rowheader').eq(2).click();
Error
Timed out retrying: cy.click() failed because this element is detached from the…

Gwynn
- 553
- 2
- 5
- 10
39
votes
10 answers
How to check if an element exists on the page in Playwright.js
I am using playwright.js to write a script for https://target.com, and on the page where you submit shipping information, it will provide the option to use a saved address if you have gone through the checkout process previously on that target…

cole
- 393
- 1
- 3
- 4
39
votes
6 answers
how does selenium webdriver upload files to the browser?
I am a javascript/java developer and I have been trying to figure out how the selenium webdriver automation framework uploads files from the file system. It is impossible to set a file input via javascript because it is a security violation. Yet…

justspamjustin
- 1,730
- 3
- 19
- 30
35
votes
3 answers
What testing does Selenium cover over and above Karma?
I understand that Karma is a JavaScript test runner, which can run tests in real browsers. If that is the case, what kind of test coverage does Selenium provide over and above Karma.

Jason Weden
- 516
- 1
- 4
- 9
32
votes
4 answers
Lynx with JavaScript
So I wrote a script in PHP that requires JavaScript to run with it. I've had a hard time finding the solution on how to run the JavaScript with PHP at the same time using some Linux tool to make it automatic (since running it in my browser isn't a…

TheNotSoWise
- 869
- 2
- 10
- 15
29
votes
15 answers
How to automate browsing using python?
suppose, I need to perform a set of procedure on a particular website
say, fill some forms, click submit button, send the data back to server, receive the response, again do something based on the response and send the data back to the server of the…

kush87
- 529
- 1
- 6
- 11
28
votes
6 answers
How to run Selenium tests on the Brave web browser?
I am trying to run some Selenium tests on the Brave web browser. I am able to start the Brave web browser through Selenium by using the ChromeDriver. However, nothing else works, e.g. I cannot cause Brave to load a certain web page.
As Brave is…

Gertjan Franken
- 596
- 1
- 5
- 24
22
votes
10 answers
Selenium - NoSuchWindowException in IE 11
I am trying to automate a webpage using selenium in IE11. I have set the protected mode settings to same level and zoom level is 100%. While running the test it opens the website however gives the exception just after. Below is the code used.
…

Wanderer
- 366
- 2
- 6
- 18
19
votes
1 answer
Protractor/jasmine test throws "UnknownError: unknown error: Maximum call stack size exceeded"
I have a test which each time I run it, throws "UnknownError: unknown error: Maximum call stack size exceeded. "
This test is calling a method in one of my services which writes to Google Drive.
The test that is failing is calling my doDrive…

pinoyyid
- 21,499
- 14
- 64
- 115
18
votes
2 answers
How do you set the value of an input field by complex selector?
WWW::Mechanize::Chrome 0.10
Iridium 2017.11 in a headed desktop session
I want to set the value of a certain formless input field.
my $field = $w->selector('tr.edit td[data-attribute="name"] input', single => 1);
finds…

daxim
- 39,270
- 4
- 65
- 132
16
votes
6 answers
How to stress test simulating heavy load using Selenium
I have a system to test, which is a video ads distribution technology. I need to load every video like 1-2 mins to serve the ads. The videos are played in a Flash client and streamed as FLV streams like in YouTube.
The reason why I need to test it…

Sumit Ghosh
- 3,264
- 4
- 40
- 59
14
votes
2 answers
How to click on a link that has a certain content in puppeteer?
If I have some content in my page such as:
Hi!
How can I use Google's Puppeteer to automate the clicking of that element?
I need to be able to select it based on its contents alone, not id, class or attribute.
Is there something like…

Totty.js
- 15,563
- 31
- 103
- 175
13
votes
2 answers
How to use/attach an existing browser using Selenium?
What is the Selenium equivalent to attaching an existing browser in Watir?
brw = Watir::IE.attach(:title, "Google")

ram
- 447
- 2
- 5
- 12