Is there has a max duration parameter in selenium?
I hava a automation case that run on chrome and will run over 3hours, i use selenium run case and use chromedriver provide browser node, on macos, it can run for three hours and end normally, but on...
View ArticlePython Selenium Scrape selectors with their respective text [closed]
I am trying to write a program that writes code for me. Imagine i have a UL list on a website and i need to scrape all the xapth selectors for each elements in the list. Is there an easy way to tell...
View ArticlePython Webscraping Javascript Problem - Automate The Boring Stuff Chapter 11
I have been having a consistent issue during webscraping of receiving an empty string instead of the expected results (based on inspect page html).My specific goal is to get the link for the top 10...
View ArticleSelenium IDE - Javascript Alert, press Enter, which target to use? [duplicate]
This question already has an answer here:Click in OK button inside an Alert (Selenium IDE) 13 answersI'm trying to create some simple test cases with Selenium IDE. I'm having a problem with recording...
View ArticleHow to find a complex( Parent+ child) xpath on selenium java
I need to a find an element on my webpage that has same tags as every other element and hence I need to find the xpath based on the title of the sub-section[parent].Below is the html code of the...
View ArticleStart firefox unmaximized with selenium in python
I am using Selenium in Python with Firefox. Firefox is always started in maximized mode, which does not work very well with my tiling window manager Awesome on Linux.How can I prevent Firefox being...
View ArticleScrape a table using BeautifulSoup in Python
I want to extract a table from this website after clicking on "National Data". I know there is an option to download it directly but I'm very interested in web scraping and I want to learn. Previously,...
View ArticleHow to click allow/block on chrome browser modal(authenticator) in selenium?
Have issue with clicking allow or block button in the attached screenIf there is a way to disable that window that will also help. When doing manually pressing Enter/Esc on keyboard will cancel that...
View ArticleSelenium: Why are explicit waits preferred over implicit waits?
The Selenium documentation page on Waits says:Implicit waiting for elements to appear is disabled by default and will need to be manually enabled on a per-session basis.From this I deduce that explicit...
View ArticleUsing a content script with 127.0.0.1 and a custom port with a Firefox Addon
I want to test a ported Firefox Addon with Selenium, as I'm already doing with Google Chrome. This extension works with a custom website and the development version of this website is serve under...
View ArticleDjango Selenium Test Using Live Database
I'm new to selenium and struggling to know where to begin with this one.This works -class SignUpViewFunctionalTests(LiveServerTestCase): port = 9000 host = '0.0.0.0' live_server_url = HTTP + LOCALHOST...
View ArticleHow can I select all the options in a drop down- Selenium Webdriver?
Currently working on Selenium WebDriver and using Java. If I have drop down name called Product.. In that drop down I have so many values (for ex:60). when executing the code I deselect all option then...
View ArticleSelenium scraping JS loaded pages
I'm trying to scrape some of the loaded JS data from https://surviv.io/stats/player787, such as the number of total kills. Could someone tell me how I can scrape the js loaded data with selenium....
View ArticleHow do I loop through a Python list of hrefs with Selenium to get a...
I would like to be able to visit a list of hrefs and in each link, find a Webelement associated with a CSS selector:elements = driver.find_elements_by_xpath("//article/a[@class='card-info']") links =...
View ArticleHow to write this LOGIN test case in selenium [JAVA]
The flow is as follows.if success login --> go to main page --> next user login in array(e-mail datas) if fail login --> open error-pop-up ---> clear input ---> next user in array(e-mail...
View ArticleCannot click element inside frame for JSP webpage using Java selenium
I have a private JSP URL which has frames. I'm sharing the snapshot of the same here.As you can see in the snapshot I wish to click on "Replication management" then "Manage queues" which is in the left...
View ArticleTrying to run Specflow tests but error returned - Unit Test Provider already...
I've been looking at similar questions on different websites in the hope I could find an answer for it but I've not come across something which has worked for me.I have a Visual Studio 2019 solution...
View ArticleUnable to find elements after switching to iframe in Selenium python
I'm running a test case and part of it is to check if an element in an iframe is visible I have done the below but it's not working and always goes to the except block. Thank youtry: time.sleep(2)...
View ArticleHow to identify an object in Selenium with No tags?
In my code, I need to verify that the text "Product successfully added to your shopping cart" is displayed after adding an item to cart. Here is the screenshot, and also the element. As we can see, the...
View ArticleAn unhandled exception of type SeleniumWebDriverException occurred in...
I am using Selenium in C# with the Edge driver however when I run the code I receive the following error. Using OpenQA.Selenium; using OpenQA.Selenium.Edge;class HomePageTests { static void...
View Article