Skip to content
Advertisement

Tag: selenium

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

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

Advertisement