2,604 questions
0
votes
2
answers
79
views
button does not click in Selenium
I am a beginner on Selenium and I am trying first to load the page then click on the button 'Explore Standards Map' that will take me to another page, but the website pops up and quits and the button ...
1
vote
1
answer
49
views
Why can't I retrieve the price from a webpage?
I am trying to retrieve a price from a product on a webshop but can't find the right code to get it.
Price of product I want to extract: https://www.berger-camping.nl/zoeken/?q=3138522088064
This is ...
1
vote
1
answer
315
views
Inconsistent Click and Menu Access Using Selenium
I use the following code to open a menu and then click on an item on the menu. It works fine the majority of the time but occasionally it throws the following error. Is there a better way to interact ...
1
vote
1
answer
273
views
Selenium can't detect text in html from Google Maps
I am trying to scrape travel times between two points from Google Maps:
I have used inspect to find the XPath of the travel time in the HTML file:
The following code raises an exception:
from ...
0
votes
1
answer
269
views
Unable to locate element on a webpage using xpath in selenium (python)
I am trying to get some data from a website called : https://dexscreener.com/ethereum/0x1a89ae3ba4f9a97b10bac6a77061f00bb956858b
and i'm trying to get the element : /html/body/div[1]/div/main/div/div[...
0
votes
1
answer
423
views
how to find the value in WebDriverWait(self.driver, 50).until(EC.visibility_of_element_located((By.CSS_SELECTOR, "div[data-result-id*='true']"))
Good evening to all. I am new to python and was just doing one of this exercise in Udemy course where we are tasked to prepare a program using webdriver and getting Internet speed test results on ...
1
vote
1
answer
96
views
Element is found but not clickable
I'm trying to find an element by it's id, click on it and download a file.
driver.get(url);
driver.implicitly_wait(60);
time.sleep(3)
element = WebDriverWait(driver, 20).until(EC....
1
vote
2
answers
1k
views
Click button with Selenium Python works only with debug mode
I tried to get data from the menu in this website. I've written this script which seems work well in debug mode. In this script, i close the chrome every time I've get information for certain city.
In ...
1
vote
1
answer
625
views
How do I get Id, className, or CSS Selector from dropdownmenu that is div for selenium in java
I tried every tag to get this element but it not working any help on this.
WebElement filterSizeDropdown = driver.findElement(By.cssSelector("#maincontent > div > div > div.klevuLanding....
0
votes
2
answers
717
views
Unable to click on "Sign In" button with Selenium and Python
I'm trying to automate a login with a user and password on a website, which is this one :
https://www.esselunga.it/area-utenti/applicationCheck?appName=esselungaEcommerce&daru=https%3A%2F%2Fwww....
2
votes
2
answers
1k
views
How to extract data from a dynamic table with selenium python?
I'm trying to extract data from a website. I need to enter the value in the search box and then find the details. it will generate a table. After generating the table, need to write the details to the ...
1
vote
2
answers
127
views
How to solve "selenium.common.exceptions.NoSuchElementExceptio" in selenium when creating a twitter bot?
I am trying to creating a twitter bot and I am stuck on the log in page.
Here is my code:
from bs4 import BeautifulSoup
import requests
import random
import datetime
from datetime import timedelta
...
1
vote
1
answer
572
views
Python Selenium - Find Element not working for a button
Can anyone assist in clicking a button on a website using Selenium? On the main landing page, I want to click the "Confirm" button. I get an no such element: Unable to locate element: error. ...
0
votes
1
answer
50
views
How to click div element to show hidden data with selenium or BeautifulSoup4?
I have to scrape data from a page which described bottom, my goal is to get phone number which described in the blue square on the left bottom , but the phone number is not quite visible, it will be ...
1
vote
1
answer
408
views
Selenium Python How to check if class AND style match for Element?
I have this progress Bar element, as soon as I upload an image the width of the element changes from 0% to 100%
This is the Inspect Element
now what I want to do is wait until that element is 100% ...
0
votes
2
answers
86
views
webscrapping using python and selenium
i create a small program in python using selenium module.
here is my code :
while True:
try:
btnOptions = WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, "/html/....&...
0
votes
1
answer
1k
views
Selenium find_all method raises AttributeError: 'list' object has no attribute 'find_elements'
I was watching a YouTube Tutorial video about Selenium for python Python Selenium Tutorial - Tech with Tim. The video was uploaded 2 years ago and it seems there are changes in Selenium for python (...
0
votes
1
answer
75
views
Could not click elements with Selenium Firefox
I'm trying to open this webpage
https://albo-on-line.comune.verona.it/web/servizi/albo-pretorio
with this code:
# selenium 4
from selenium import webdriver
from selenium.webdriver.firefox.service ...
1
vote
4
answers
1k
views
How to extract informations from a li tag with selenium
I have a website i want to scrape but the information am looking for is contained in an "li" tag. This "li" tag has no class or id. Also all the "li" tags are contained ...
1
vote
1
answer
807
views
How can I wait for element attribute value with Selenium 4 n python?
I want to handle the progress bar to be stopped after a certain percent let's say 70%. So far I have got the solutions, they all are using .attributeToBe() method. But in selenium 4 I don't have that ...
0
votes
0
answers
253
views
Can "element click intercepted" error in Selenium refer to another window instead of a webElement overlapping?
I am having tests inconsistently failing because of the following error: "org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element is not clickable at point (951, ...
1
vote
1
answer
257
views
How to get a specific class name value using selenium?
I am trying to get the price from this website, however my code does not return the price. I am wondering if I can get a specific network item header values.
For example network with name 759454 and ...
1
vote
1
answer
87
views
Python Web Scraping - HTML error returning incomplete
When using my code, HTML is coming back missing data. What can it be ?
Before, everything was working fine, until changes were made to the code for expected conditions Selenium,
Code is not all ...
1
vote
2
answers
188
views
Python selenium Element error event wait function is not helping
This is my first attempt to login a website using selenium, I have written the below piece of code
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium....
-2
votes
1
answer
449
views
element click intercepted error in Selenium / Java - collapsible button
I got this error message while trying to click on a specific collapsible button.
element click intercepted: Element Filters is not
clickable at point (522, 265). Other element would receive the click:...
1
vote
1
answer
63
views
Python WebScraping - Sleep oscillate in slow websites
I have a webscraping, but the site I'm using in some days is slow and sometimes not. Using the fixed SLEEP, it gives an error in a few days. How to fix this?
I use SLEEP in the intervals of the tasks ...
1
vote
1
answer
135
views
Unable to locate the element on an angular website
I have tried the below code and it is always timing out. But when I look it up with the browser inspector, I can see the Username input element.
I have also tried to find it by ID but not able to.
...
2
votes
1
answer
671
views
How to scrape Next button on Linkedin with Selenium using Python?
I am trying to scrape LinkedIn website using Selenium. I can't parse Next button. It resists as much as it can. I've spent a half of a day to adress this, but all in vain.
I tried absolutely various ...
1
vote
1
answer
61
views
How to separately send email to the form
I made web contact form, my email sending to subscribe email box , I want to send email to the form only. Please help me
driver.get('https://shop.rtrpilates.com/')
driver....
0
votes
1
answer
39
views
getting TimeoutException when using expected_conditions in heroku
I have a selenium robot that worked perfectly locally but on heroku TimeoutException raises whenever its on a expected_condition (element_to_be_clickable, visibility_of_element_located and ...
0
votes
1
answer
358
views
Selenium TimeoutException: Message using selenium
from selenium import webdriver
import time
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from webdriver_manager.chrome import ChromeDriverManager
...
-1
votes
2
answers
355
views
WebDriverWait by class name when there are more class with the same name
I’m trying to click on a button that has the same class as other 5 buttons.
This code is working but clicks on the first button that finds the class.
WebDriverWait(driver, 10).until(EC....
1
vote
1
answer
121
views
how to submit button click by text link
I am trying submit form using selenium, but submit button isn't working , How can I submit button through driver.find_element_by_xpath('//button\[@type="submit"\]').click() this isn't ...
0
votes
1
answer
476
views
Selenium Python: How to set_page_load_timeout, if beyond time return except(not error)
I have this code and how to loop if load timeout it will return except and it run next test case
def search_action(self, xpath, value):
try:
self.driver.set_page_load_timeout(1)
...
2
votes
1
answer
690
views
Selenium python driver doesn't click or press the key for the button all the times
I'm using selenium to get to YouTube and write something on the search bar and then press the button or press the enter key.
Both clicking or pressing a key does sometimes work, but sometimes it does ...
1
vote
2
answers
113
views
How to click button with Selenium
I tried with XPath but selenium can't click this image/button.
from undetected_chromedriver.v2 import Chrome
def test():
driver = Chrome()
driver.get('https://bandit.camp')
...
1
vote
2
answers
1k
views
selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: invalid locator
so I'm trying to make this bot with selenium but when I'm trying to use the send keys func it doesn't work
I'm stuck on it for hours and I cant seem to find to solve the problem please if anyone has ...
1
vote
1
answer
401
views
How to scroll the element until a certain word appears?
I'm scraping Google Maps and I need to know how to scroll the query column until the word appears
"You've reached the end of the list".
I am using selenium for scraping.
Code I currently use:...
0
votes
1
answer
28
views
How can I get the links of the apps from a certain developer, till now i have scrapped the web objects but unable to get the actual links?
I am trying to extract the links of all application from a particular developer present on the playstore.
import time
from selenium import webdriver
from webdriver_manager.chrome import ...
1
vote
1
answer
45
views
Python-Selenium no such element: Unable to locate element
I'm new to coding. I'am trying to make a twitter bot but when I find XPaths and paste it in my code it gives an error
I tried to find the element with id, name, selector and paste it in my code but ...
0
votes
1
answer
160
views
open pdf link with python selenium
os.environ['PATH'] +=
r"C:\Users\dew23\OneDrive\Computer Science"
driver = webdriver.Chrome(ChromeDriverManager().install())
driver.get("https://official.nba.com/nba-injury-
...
1
vote
1
answer
1k
views
Accepting cookies when web scraping
Related to a previous question I am trying to edit the answer to apply to another website, but can't get it to work. What I want to do here is to accept the cookie, and then extract the information ...
1
vote
1
answer
2k
views
Python - Selenium is complaining about element not being scrolled into view after scrolling to that element
I have the following code which is supposed to scroll down the page and then click a button. When I run my script, I can see that the page does scroll until the element is at the very bottom of the ...
2
votes
1
answer
579
views
selenium - wait when editbox is interactable (after button click)
So I'm trying to learn about interacting with elements, after they are loaded (or enabled/interactable). In this case pressing button enables Edit box (after like 3-4secs), so you can write something. ...
-1
votes
1
answer
174
views
Parsing a dynamic table with Selenium and Java
The goal of this program is to visit https://www.cia.gov/the-world-factbook/countries/ and grab the links contained in the table for all 262 countries. I am using Selenium to accomplish this but I am ...
0
votes
1
answer
45
views
How do I put an attribute as a variable in a python function? [duplicate]
I have this function:
def webdriver_wait(browser, delay, tag_name, tag, succesful_message, fail_message):
try:
wait_by_var = WebDriverWait(browser, delay).until(EC....
1
vote
1
answer
177
views
python selenium- how to get only some of the information inside a <a> HTML element?
The website bellow will she the scores of a all the soccer matches and this one is an example, im trying to get the teams that have played and the scores.
photo
this is the code for the one above:
...
0
votes
1
answer
134
views
How upload file with selenium
I trying to upload video file with selenium, it doesn't work
my code:
a = wait.until(EC.element_to_be_clickable((By.TAG_NAME, 'input'))) browser.execute_script("arguments[0].style.visibility = '...
1
vote
1
answer
48
views
Explicit waits best combinations for click
I'm wondering what combination of explicit waits will be the best for click method. Currently, I'm using only:
ExpectedConditions.visibilityOf
And I thought it will be better to replace it or combine ...
-1
votes
1
answer
62
views
WebScrapping with Selenium and BeaufitulSoup can't find anything
I am trying to extract all the description in the links in the class="publication u-padding-xs-ver js-publication" of this website: https://www.sciencedirect.com/browse/journals-and-books?...