I just want to apologize for my inaccurate question. So my problem is that I have written a Python script which opens a music database website, then it looks up a certain artist (in my case "cro"). After that, a table comes up where I want to extract the data from. My code looks like ..
Hello everyone I’m learning selenium recently and as I bet is a classic newbie mistake I filled my code with time.sleep which made everything really slow. So I started to learn about webdriverWait. I took some sample code and I have tried multiple things but I still get the error of "what you clicked is ..
I want to use selenium in the spyder/Jupyter-notebook, but I can not download the driver. Is it possible to somehow use selenium without download the driver, like in collab version Source: Python..
from selenium import webdriver from selenium.common.exceptions import TimeoutException from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By driver = webdriver.Firefox() driver.get(‘https://pythonbasics.org’) timeout = 3 try: element_present = EC.presence_of_element_located((By.ID, ‘main’)) WebDriverWait(driver, timeout).until(element_present) except TimeoutException: print("Timed out waiting for page to load") finally: print("Page loaded") This is my code , i want ..
I am trying to create this app so that it finds the streamers views, if it doesn’t find the XPATH I want it to output "Streamer is offline" but it just outputs "Streamer is offline" even for online streamers. Also, when typing a new streamer the label does not overwrite, rather creates a new line. ..
driver.get("https://test.com/#/") delay = 9 # seconds try: start_time = time.time() myElem = WebDriverWait(driver, delay).until(EC.presence_of_element_located((By.XPATH, ‘/html/body/app-root/div/div/div/div/div/div/app-home/div/div’))) x = ("%s" % (time.time() – start_time)) roundE =float(x) roundEs = math.ceil(roundE) print(roundEs) I want to get Xpath loaded time , is it correctly ? Source: Python-3x..
I’m trying to log in to linked in and access the "My network" element. I’ve tried using id, class, xpath, and nothing works. I also tried waiting for 10 secs for the page to load so that python can access the site but that gives an error too. Here’s my code: from selenium import webdriver ..
I’m practicing trying to scrape my university’s course catalog. I have a few lines in Python that open the url in Chrome and clicks the search button to bring up the course catalog. When I go to extract the texting using find_elements_by_xpath(), it returns blank. When I use the dev tools on Chrome, there definitely ..
Im trying to fill the expiry date of credit card using this code driver.find_element_by_xpath("//input[@id=’authnet-card-expiry’]").send_keys(‘0122’) however its not displaying my expected result 4 Source: Python..