All Questions
164 questions
1
vote
1
answer
91
views
Firefox Browser blocking execution of asynchronous JavaScript?
I wrote simple Tests for my webapplication in the Selenium Framework, which works completly fine for Chrome and Edge.
But only in Firefox the asynchronous Script gets timeouted, could be an issue with ...
0
votes
1
answer
140
views
How can I prevent Selenium Webdriver opening multiple instances of Firefox?
I am writing some automated tests using Selenium Webdriver on Node.js. So far they are working fine, but I have one problem: Whenever I run a test (just 1 test), 4 instances of Firefox open. The test ...
1
vote
1
answer
476
views
Why can't I control Firefox using Selenium/Javascript on Ubuntu 22.04, when I can with Python?
I have a python script to control firefox using selenium, and it works fine:
from selenium import webdriver
from selenium.webdriver.common.by import By
driver = webdriver.Firefox()
driver.get("...
1
vote
2
answers
452
views
Firefox (geckodriver): How do I inject JavaScript functions into a page so that they persist upon return from 'executeScript'?
I have a Selenium Java library that includes a JavaScript "glue" library that enables JavaScript functions to throw serialized Java exceptions. This enables much more natural handling of ...
2
votes
0
answers
49
views
How do I detect the wanted change on a dynamic page controlled by JS?
If I disable JS, the page doesn't work.
There's a form to choose a date. After you click the form, two tables appear. These tables are created by JS and they just show two months. You can click left ...
0
votes
1
answer
399
views
How to handle print preview in Firefox using selenium robot framework
I am trying to tap on the 'cancel' option in the print preview page in Firefox.
But unfortunately, I am not able to inspect the element on right clicking on the cancel option.
I was able to inspect in ...
2
votes
0
answers
448
views
Selenium Python Shadow DOM input text
The website I am interacting with uses shadow DOMs. I can successfully interact with them for clicking buttons and in some cases can input text but I am currently stumped on this one.
The HTML looks ...
0
votes
0
answers
92
views
Download file generated by JavScript without confirmation using Firefox Linux plus Selenium
I am using the Selenium web browser automatize on Firefox v90 64 bits with Geckodriver v0.29.1 at Ubuntu 20.04.
I want to automatic download some XLSX file from a webpage without Firefox ask me for ...
2
votes
0
answers
529
views
Change Firefox browser time zone using Selenium on Windows
I am testing some web functions on firefox that depends on the browser time zone, therefore every test need to run as it would be on an different time zone.
Change the system time is not an option ...
1
vote
1
answer
406
views
Prevent file picker dialog from opening - Selenium GeckoDriver
I'm trying to upload a file using Selenium by sending keys (the file path). It works, but it also opens the file picker dialog and it never gets closed. It doesn't occurs any problem though, but in ...
2
votes
3
answers
929
views
Firefox in Python Selenium: driver.execute_script attempting to remove text characters with JQuery gives "SecurityError: The operation is insecure"
I am using Selenium 3.141.0 with Python, for Firefox 88.0 with geckodriver 0.29.1.
Previously, I was able to run the below JavaScript execution to remove unwanted characters (in this case ®) from web ...
1
vote
0
answers
98
views
how to click on the elements in selenium, since items are overlapping and also they are svg element
how to click on the elements in selenium, since items are overlapping and also they are SVG elements.
<circle ng-if="$ctrl.eventVms" ng-repeat="e in $ctrl.eventVms" ng-attr-cx=&...
2
votes
1
answer
2k
views
Is the Firefox Web Console accessible in headless mode?
The title says it all: I am wondering whether it is possible to interact with the Firefox console upon starting Firefox in headless mode.
More generally, I'd settle for some way of accessing it ...
-1
votes
1
answer
126
views
How to scroll page apart from window.scrollTo()
I've got a test assignment, which asks me to parse Spotify playlists for some info (artist, album, song name, and duration). I'm not allowed to use Spotify API. So far I've managed to retrieve the ...
1
vote
1
answer
615
views
Selenium + Protractactor: Downloading file in chrome & firefox
I've been trying to update my conf.js file to download files, it should work for firefox and chrome (independent of one another).
I've been following the guides and answers online, (including but not ...