I am trying to find menu prices for certain fast food restaurants from this website by different state. There is a dropdown menu where different states are the options. After I select a state (for example, California), I want to web scrape the different prices of their Ice Cream. However, I keep getting the same error message preventing me from
Tag: selenium-webdriver
Selenium is unable to get element.text while using python and web driver
I am learning Selenium with Python. Above is my code. I want to retrieve this circled element in Wikipedia, as we can see it is an anchor tag<a> that is within a <div> that has an id of “articlecount”. I’ve tried the By.CSS_SELECTOR which didn’t work, so I use XPATH instead as shown in the code. But it still doesn’t
Need to run the code again if it fails, is there anyway out?
i have written a selenium automation code however it is very unstable because of the Salesforce website , i need some expertise in my code. i wanted to know how i can re run the code if it fails. below is my code , i will not able able to share some part of my code. i was trying to
Extract href by class Selenium Python
Im trying to get all hrefs that are found the a specific class next to them. Im not really familiar with HTML so I’m having some trouble. Basically the HTML code in inspect is: I’m using the find_elements command to find all lines that include the class “notranslate _0imsa ” like this: I then extract all hrefs from “links” with
How to get text from a html using Selenium and Python which has two elements with the same classname where I need to extract both
I have a html like: and my python code like: Is it possible make this get all elements with same class name and put on a array or define as different variable like this? OutPut: #or Actualy my code only get the first one Answer As per the HTML: The following line line of code: will always identify the first
Selenium Select the exact date from Datepciker
This is continuation of this question asked earlier Earlier question I am able to select the date but the problem arises in below scenarios when there is some dates like I tried using XPath not contains but I am getting more than 1 element identified. below is my code I want to select only the dates which are below how
Download currnet image with python playwright
Is it possible to make something like this with Playwright: https://stackoverflow.com/a/52692041 I prefer playwright over selenium but can’t find a way with Playwright. Answer I tried this and it worked (I used an element handler instead of arguments[0]):
How to calculate time to load URl in selenium python automation
I have a selenium python automation test, which calculates Response time and adds it to JSON report. The problem is the code that I have calculates response time as before opening the URL and after it stops the test. I want to calculate the time it takes to load the URL page. following is my code test_screenshot.py Conftest.py I am
Could not get version for google-chrome with the command: powershell “$ErrorActionPreference=’silentlycontinue’ using WebDriver manager and Selenium
I’m trying to create a script using python that separate 2 kind of websites , the one with SPF included and the others with SPF , and classify them using python, so in the beginning it worked perfectly but these daysit gives me a message error that I don’t find a clue about it The output message is as follows:
Print out times that are free and save them in dictionary
I am working on a timetable system and need all the free slots (where the student has no lectures). Right now it prints the entire timetable out. I just need to store all the free slots somewhere. They are showing up as “NaN” on the time table. here is my code. Expected output would be all the free times printing