I try to scrape all the pages of a URL by selenium python, but only could get the values from the 1st page. The code is going to the next page but same code is not working to scrape ending with an error. The error is ” Element … is not clickable at point (208, 17). Other element would receive
Tag: selenium
Selenium taking a lot of time to find element by XPATH
I am trying to scraping name and email of agents from this site. The code firstly captures link to every profile on first page and then visits each profile to get name and email. But the problem is that it is taking alot of time to get anchor tag having name of agent in it. Here’s the code: Is there
Selenium problem with ElementClickInterceptedException
I am trying to scraping in this URL, dealing with a Download button and I am having a problem, as the last line gives a ElementClickInterceptedException. My actual goal is to download the CSV file. The code: enter image description here Answer Element you trying to click in initially out of the visible viewpoint. So, you need first to scroll
ValueError: There is no such driver by url (chromedriver_mac64_m1.zip)
I’m running a script with Selenium but just a couple days ago I started to receive the error below: I’ve tried to do some research on GitHub back can’t figure out the error https://github.com/SergeyPirogov/webdriver_manager/issues/443 Answer Because google has changed the link to chromedriver for apple silicon macs, It seems that the new link is https://chromedriver.storage.googleapis.com/106.0.5249.61/chromedriver_mac_arm64.zip, and the maintainer of webdriver-manager
Python chunks write to excel
I am new to python and I m learning by doing. At this moment, my code is running quite slow and it seems to take longer and longer by each time I run it. The idea is to download an employee list as CSV, then to check the location of each Employee ID by running it trough a specific page
clicking on hyperlink using xpath and css selector do not work
I would like Selenium driver to click on the export button as shown in the image. Here is the html code: I tried: from the suggestion here driver.find_element(by=By.XPATH(“//a[@href=’/index.php/filter/export/f/KbInvoiceFilter/m/kb_invoice/a/list’]”)).click(); but it returns str is not callable. Then, I tried using CSS_SELECTOR based on docs here: it returns NoSuchElementException Answer Try with below OR Add the ExplicitWait
Cant get logging element
When i was testing my program, it’s end with code 1 here is full error (“Traceback (most recent call last): File “C:Usersds072PycharmProjectspythonProjectmain.py”, line 20, in <module> wait.until(EC.element_to_be_clickable((By.XPATH, “/html/body/main/div/div/div/div[1]/div[3]/div[1]/div[1]/input”))).send_keys(“my username”)”) here is my code (https://pastebin.com/RThnY8GY) I have tested alternatives for this value (“/html/body/main/div/div/div/div[1]/div[3]/div[1]/div[1]/input”) but with out results :C Please help me Answer The following is one way to select those fields
Selenium python check if the searched element appears within a period of time
Please help me. I need to check if an element appears. The element may or may not appear. I want to check if the element appears in an x period of time, but, I still need to refresh the page during this entire period of time, the element does not appear without refreshing the page This code is not what
Failed to get only the “text” from “span” by selenium
this is my code: my results: site element: I want to get only the number “16.98”, instead im getting the whole element. When im trying to write “.text” it returns “none”. Answer Instead .text use get_attribute(‘textContent’) the element might be hidden on the page. This should return $16.98 to get the 16.98 use string manipulation like
Python Selenium error: Unable to locate the Element by Name:
I am trying to automatically login to the website https://opensource-demo.orangehrmlive.com/web/index.php/auth/login using selenium By it gives an error selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {“method”:”css selector”,”selector”:”[name=”username”]”} My code : import selenium from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.chrome.service import Service s = Service(“C:Developmentchromedriver.exe”) driver = webdriver.Chrome(service=s) driver.get(“https://opensource-demo.orangehrmlive.com/”) username= driver.find_element(By.NAME,”username”) username.send_keys(“Admin”) I