Questions tagged [browser-automation]

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.

923 questions
126
votes
4 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
  • 52,828
  • 28
  • 91
  • 124
37
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…
34
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.
28
votes
5 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
  • 799
  • 2
  • 9
  • 15
27
votes
16 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
  • 469
  • 1
  • 6
  • 11
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
  • 346
  • 2
  • 5
  • 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…
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
  • 38,078
  • 4
  • 57
  • 123
15
votes
5 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,124
  • 4
  • 37
  • 58
15
votes
4 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…
13
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
  • 14,070
  • 25
  • 93
  • 165
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
  • 307
  • 1
  • 2
  • 9
12
votes
2 answers

How to use synchronize in Capybara exactly?

If how to use wait_until is pretty clear (I've used the methods like this while creating tests through the native Webdriver methods), but not the new synchronize method (sorry:)). I've read the theme about why wait_until is deprecated, I've read…
11
votes
1 answer

How do I automate Chrome using WatiN?

I've done countless Google searches on this. Despite all the promises, I simply can't find one straight-forward peice of documentation on how to automate Chrome with WatiN. Can anyone help?
Jonathan
  • 29,612
  • 37
  • 126
  • 201
11
votes
1 answer

How to automate an IE webapp that pops a modal HTML dialog?

[Revised yet again for clarity] I have a C++ program which interacts with a website. The site is IE-specific, and so is my program. I'm connecting to the running instance of IE in an ordinary way (out of process -- see code). Once I get the…
egrunin
  • 23,366
  • 5
  • 44
  • 92
1
2 3
61 62