2,604 questions
0
votes
3
answers
122
views
Using selenium assert with wait
I'm trying to use asserts in selenium java. I read that for every validation, I need to use an assert as best practice.
I stumbled upon this code example:
WebElement button = wait.until(...
Best practices
1
vote
3
replies
85
views
Using selenium waits as asserts
I'm trying to use asserts in selenium java. I read that for every validation i need to use an assert as best practice.
i stumbled upon this code example:
WebElement button = wait.until(...
-1
votes
1
answer
67
views
Selenium script marks all search results as “not found” because details load only after clicking a link [closed]
I’m using Python + Selenium + ChromeDriver to check a list of titles (from a CSV file) against an online library catalog.
My script searches each title and tries to determine if a specific library has ...
1
vote
2
answers
111
views
Selenium select from dropdown menu
I'm a bit new to Selenium and am trying to build a webscraper that can select a dropdown menu and then select specific options from the menu. I've built the following code and it was working at one ...
1
vote
4
answers
90
views
Modal Popup - Selenium/Python
I am automating a confirmation request, and my code gets me all the way to the end, but when it comes to actually confirming my reservation, there is a popup modal window that appears as a layover on ...
2
votes
2
answers
92
views
Get url of second tab using selenium?
I'm trying to get the second tab url using the following code -
import time
import os, sys
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver....
-1
votes
1
answer
66
views
Python Selenium: How can I specify a "no timeout" WebDriverWait?
I'm using Selenium WebDriverWait in a Python function decorated with @timeout(). Since timeout is handled at the function level, I really don't need WebDriverWait to timeout. Is there a way to have ...
0
votes
1
answer
59
views
Unable capture the "success" state of the elements after form submission
I'm trying to learn Java and using Selenium for my AQA tests.
Here's a dummy website that offers different kind of forms / pages / buttons to train:
https://play1.automationcamp.ir/forms.html?
I'm ...
0
votes
1
answer
57
views
Selenium Automation with C# POM Elements vs Element Methods
So I have been playing around with Selenium's POM (Page Object Model) specifically the FindsBy annotation.
[FindsBy(How = How.XPath, Using = "//a[@attribute='some_value']")]
public ...
2
votes
1
answer
73
views
Python Selenium click in webdriverwait versus find_element
I'm having trouble understanding what are the differences between these two blocks of codes. Sending clicks both work in webdriverwait and find_elements.
Code 1
from selenium import webdriver
from ...
0
votes
0
answers
42
views
Python Selenium - How to Iterate through a table column, visit URLS and scrape content on inner pages
Long story short:
I am trying to write a function that will go through a table column, and as soon as it hits an exact match to a number I give it, it will start visiting the URL on each row after the ...
0
votes
1
answer
116
views
WebDriverWait is getting the title, but javascript, or something is changing the browser's title after the page has loaded
I'm using selenium to rename and sort the medium to a folder based on the title of the page, but the page is still loading content in the background and the title of the page changes after firefox has ...
1
vote
3
answers
86
views
Selenium XPath: How do I click on the Load More button
I'm trying to scrape job listings on a career page. I'm trying to click the load more button, but cant seem to figure it out. i was wondering if someone could help me out -- I keep getting an error ...
0
votes
0
answers
51
views
NoSuchElementException even though locator used is working in Chrome
I am getting NoSuchElementException for an element and because of which my regression suite is failing. I have used XPATH, CSS selector and when searched in Chrome using those locators, I am able to ...
1
vote
2
answers
276
views
Unable to click the Explore text in Google Trends site using Selenium Python
I need to get Google Trends data for past 30 days, past 12 months like that for the purpose of my current project. I'm able to get daily data using Google Trends API. The package has another API ...
-1
votes
1
answer
62
views
Selenium Explicit Wait fails to wait for clickability
I am having an issue with selenium explicit wait for a button to be clickable. When the button webelement is returned by
self.driver_wait.until(
expected_conditions.element_to_be_clickable(...
0
votes
1
answer
97
views
Not able to user WebDriverWait class
I am new to Java with Selenium and I am not being able to use WebDriverWait class.
I have added dependencies for selenium and webdriver manager and also imported the class on the java class but still ...
0
votes
0
answers
32
views
Selenium Python Trying to Better Understand WebDriverWait and Splash/Transition Screens
I'm coding for a website that uses the transition screen below in between each data screen, including when you first connect to the site.
So this screen appears before the initial login screen. My ...
0
votes
1
answer
51
views
Selenium webdriver skipping some links while iterating through df - python
I'm trying to scrape some data from around 1800 webpages with a similar table format using selenium python. I have a dataframe full of the links to each of the necessary pages. However, when I use ...
0
votes
2
answers
62
views
Selenium Issues With Waiting Until Multiple Dropdowns Populate
I am having a great amount of trouble working with python selenium on a multi-dropdown url retrieval algorithm. In short, I'd like my program to go the the link (https://www.xpel.com/clearbra-...
1
vote
1
answer
139
views
Python Selenium submit works only in debug mode
My python program with selenium has a strange behavior : it works very good when I start it in debug mode but not in normal mode. The FromDate is not taken into account in normal mode.
I thought it ...
0
votes
1
answer
252
views
How to replace Thread.sleep with WebDriverWait to avoid StaleElementReferenceException
Problem 1: I am using https://candymapper.com/ demo page to practice automation tests and I encountered the following problem. When I am using Javascript Executor .scrollIntoView, afterwards my ...
0
votes
1
answer
56
views
How to find the correct wait command for a dynamic table element?
The website is https://www.nseindia.com/get-quotes/derivatives?symbol=AARTIIND
Here is my code:
driver.get("https://www.nseindia.com/get-quotes/derivatives?symbol=AARTIIND");
try {
wait....
0
votes
1
answer
407
views
Using WebDriverWait to only check till timeout, without exception
I am trying to use WebDriverWait for condition to be true. If it's not true after timeout, continue - instead of timeout exception.
new WebDriverWait(driver, 10)
.pollingEvery(Duration.ofSeconds(1)...
0
votes
1
answer
52
views
Issue selecting button tag with text using Selenium WebDriverWait
I can´t select a button with a specific text (hence can´t do click on it).
This is a image of the button:
and this is its html code:
When using WebDriverWait and the text 'Confirm payment', the ...
0
votes
0
answers
25
views
In any scenario in automation where implicit wait will fail every time but explicit wait will pass even both having 10 sec default Time?
In any scenario in automation where implicit wait will fail every time but explicit wait will pass even both having 10 sec default Time ? Its not as depend upon condition e.g clickable point of view.
...
0
votes
1
answer
63
views
Selenium - Unable to click on Navbar dropdown
I'm trying to run a script that automate a certain task. Which is:
Chrome searches website
Login to website (Fill in details)
Navigate to a tab (Called Jobs Listings V2)
Input a product barcode on &...
0
votes
2
answers
173
views
Unable to get an element using Selenium
I have been unable to get the rating number from the website https://www.hoka.com/en/us/mens-everyday-running-shoes/rincon-3/1119395.html using selenium.
This is what I have as Python code:
from ...
1
vote
1
answer
62
views
Webscraping with Selenium using Xpath
I'm looking for some numbers on https://tnnslive.com/
The numbers I'm looking for on tnnslive.com:
If I copy the xpath in Chrome, I get:
//*[@id="root"]/div/div/div/div/div/div/div/div[2]/...
0
votes
0
answers
34
views
WebDriver.Wait() not working inside a While loop used for infinite page scroll
I want to use WebDriver.Wait() function inside a while loop. While loop is used for scrolling an infinite scroll website. I want to have a wait between last_scroll and new_scroll to get page content ...
0
votes
1
answer
809
views
How to locate the input element within nested divs using Selenium
I'm having trouble locating element <input class='search-text'...> and would like to place the text 'hello' into the text box.
Trying to locate the input class='search-text'
My webdriver code is ...
0
votes
2
answers
980
views
How to close the cookie banner using Selenium
There is a cookie on this page which i have tried to close using selenium java and testNG but not closing. The url is https://hausrat.allianz.de/
Below is my code:
public void closeCookieNotification()...
1
vote
2
answers
486
views
How to click on a button element using a Python bot
I want to click the send e-mail button in the code below, but I cannot access any fields such as selector, xpath ... and click the button. When you run the code, you will see that it already opens and ...
2
votes
2
answers
4k
views
How to locate the search box on Google Home page using Xpath
I have entered correct from the developer tool xpath still it is not macthing element. How can find the xpath or other locator for google search box.
HTML:
<input id="input" type="...
1
vote
1
answer
155
views
Selenium ignores WebDriverWait and perform action instead
Test have multiple clicks which redirect to other page so I added some explicit waits there but when test is executed Selenium ignores one of two waits and performs click. And only then explicit wait ...
0
votes
1
answer
208
views
Override IGNORED_EXCEPTIONS in wedriverwait wait.py
Is it possible to globally override the IGNORED_EXCEPTIONS for WebDriverWait?
rather than having
return WebDriverWait(self.browser, 10, ignored_exceptions(StaleElementReferenceException, ...
1
vote
1
answer
760
views
How to find an element with multiple class names using Xpath or CssSelector
I want to access this element:
div data-v-658f4ceb="" class="trn-gamereport-list trn-gamereport-list--compact">
I know that since it has multiple names in the class I would ...
1
vote
1
answer
100
views
Selenium returning blank values in addition to desired values when searching by Xpath from table data
I'm utilizing code from this tutorial: https://towardsdatascience.com/how-to-use-selenium-to-web-scrape-with-example-80f9b23a843a
When running the Python script, the Webdriver does pick up the desired ...
0
votes
2
answers
104
views
double clicking an element with Selenim in Python isn't working
I'm scraping Tradingview. On that website is this chart:
I'm trying to double click the red circled element on the chart. When my code tries to double click it, it doesn't get double clicked.
This is ...
1
vote
1
answer
825
views
How to click on a button continuously until another element appears using Selenium Python?
I have a website which has a button "show more", which one can click as often as one likes. At some point, there will be a <span> with same name and as soon as I see that one, I want ...
0
votes
1
answer
271
views
How to context click within the canvas and select the context menu with text Remove indicators within tradingview.com using Selenium in Python
I am scraping Tradingview.com and I'm trying to get my code to right click on the chart but it can't do it.
This is my code:
# import modules
import time
from selenium import webdriver
from selenium....
0
votes
1
answer
325
views
Selenium Java: Expected condition failed: waiting for element to be clickable (Chrome browser)
I am trying to write a test in Selenium, but for some reason my wdwait line of code in below method is failing with error message in title. When I comment the wdwait line, test passes normally. What ...
1
vote
1
answer
199
views
Scraping Angular data with Selenium
Below there is some html that I can extract Text with Selenium driver.
<td colspan="2"><strong>Owner</strong>
<div ng-class="{'owner-overflow' : ...
3
votes
1
answer
50
views
Popup consent obstructing my selenium script from completing the test
I am a newbie to selenium automation and I am trying to run this test script. Unfortunately, a cookie consent kept popping up which I believe is obstructing my script from completing. How do I perse ...
1
vote
2
answers
4k
views
How to identify and click on dynamic elements using Selenium and Java
I've tried several xpaths but non could be used to pass my test. I'm a new comer in the automation world and I'm struggling with this particular problem.
I'm trying to locate the element with text ...
0
votes
1
answer
93
views
How to click on next button in Linkedin with Selenium in Python?
I have a problem to find element "Next Button" and click that with Selenium in Python within the webpage
Code trials:
try:
driver.find_element(By.CSS_SELECTOR, ".artdeco-...
1
vote
2
answers
155
views
How to identify the Add button within chrome://settings/passwords page using Selenium Python
I'm writing a test which needs to store password inside the browser for a dumb site and I'm performing this task with Selenium Python.
I'm able to load chrome://settings/passwords without problem.
The ...
0
votes
2
answers
104
views
ElementClickInterceptedException: element click intercepted: Element is not clickable clicking on a download link
Using Selenium & Python I need to click on targets.simple.csv download a .csv file from this page: https://www.opensanctions.org/datasets/default/
Here is the code I have written:
import pandas as ...
10
votes
2
answers
42k
views
How to click on "Verify you are human" checkbox challenge by cloudflare using Selenium
I need to automatically download using Python a .csv file that is in this web page:
https://pace.coe.int/en/aplist/committees/9/commission-des-questions-politiques-et-de-la-democratie
Now, I have ...
1
vote
1
answer
108
views
How to write text into a non-input element using Selenium Python
I am trying to send automated google chats but the element of the text box in which I write the message has no <input> tag. The <div>s are not taking input. Here is the structure of the ...