I have got this piece of html code: <span class=”amount ng-binding ng-scope” ng-if=”object.numberOfReactions !== null”>41</span> I want to acces the 41 number by using driver.find_elements_by_xpath, my best try is driver.find_elements_by_xpath(//div[@ng.if=’object.numberOfReactions !== null’])but this gives an empty list . Help would be greatly appreciated. Source: Python..
I’m coding a script to track price products on Amazon. But my code only works well for about 15 minutes, and then appear above error! This is my code: from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.common.exceptions import TimeoutException from selenium.webdriver.support import expected_conditions as EC ..
I’m making an image scraper for bing because it has a well developed search by license function. In anycase I can’t seem to get more than one image because I can’t get back to the main page after switching to the iframe to get the src from the first image. Any tips? import selenium from ..
I’m using python selenium to automate user login for a website. However, this specific website uses a 2-step authentication when logging in: After clicking login, it then sends a code to your email address, which you have to enter into the website in order to authenticate. Any ideas what I should do or how I ..
I am successfully able to scrape the outer data from tableau report but not pie chart data. https://bioinfoinc.com/covid-19-lab-closures-tracker Please help and suggest how to get this data. Thanks in advance. Source: Python-3x..
I have a page where both of the following elements or only the one will be visible. How can I check if any of these two elements exist? My code is for example: def element_one(): driver.find_element(By.CSS_SELECTOR, ".selector_one").is_displayed() def element_two(): driver.find_element(By.CSS_SELECTOR, ".selector_two").is_displayed() if element_one() or element_two(): print("OK") else: print("ERROR") Doesn’t work for me if also tried ..
I am trying to scrape links with Selenium and google chrome driver. I have managed to write up a script that scrapes the links for each page and navigate to the next one. The goal is to save the links into a file of each page. I seem to be having some trouble trying to ..
I want to use one web driver in selenium automated in multiple browser Source: Python..
I’m writing a simple script to automatize the access in a platform with SSL Certificate, when i navigate in the url, the browser opens the popup for selecting the certificate, as shown in the photo. Im using this portion of code to interact with the popup, but nothing happens. alert_obj = driver.switch_to_alert().accept() I can’t interact ..
just searched google but could not find answer, i want to know if it’s possible to package python script with selenium into EXE file. i’m asking this question because selenium needs webdriver.Chrome location to work properly. i created external TXT file and put my webdriver location there and told python to take loc from there ..