Skip to content
Advertisement

Tag: selenium

I have a wbpage where everytime based on start and end date the textboxes increase and decrease I am not getting proper row count and txtbox coun

This is the code iam using to count number of rows, it is returning only 1: tablen = driver.find_elements(By.XPATH, ‘//*[@id=”m_mc_s0_z0_C_ctl00_tblForecast”]/tbody/tr’) tblength = len(tablen) print(tblength) Result : it is printing output as 1, but their are many rows Answer Writing here in answer section as I have a snapshot to paste. Is your locator correct? I built hmtl of your code

WebDriverException: Message: Service geckodriver unexpectedly exited. Status code was: 64 error using Selenium Geckodriver Firefox in FreeBSD jail

For some tests, I’ve set up a plain new TrueNAS 12.3 FreeBSD Jail and started it, then installed python3, firefox, geckodriver and pip using the following commands: Afterwards, when I want to use Selenium with Firefox in my Python code, it does not work: it brings Funnily, on another Jail that I’ve set up approximately a year ago (approximately in

Selenium element.text() is not considered as a string

Im trying to get an element name with python selenium and print it later but it throws following error: Code line looks like this: HTML element looks like this: I tried searcing for element by XPath but it seems not to be a reason for error… Answer To get a web element text you should apply .text on it, not

How to make a loop that keeps cheking if theres a certain class

Hello I’m trying to make a loop that keeps searching for a class with “buy” and if it finds it needs to refresh until it can’t find it anymore and then it runs the rest of the code. I’m using selenium and python help would be much appreciated. Thanks in advance Answer While not true is the actual loop condition.

For loop with lot of different Urls

totally novice in python, after many youtube videos and tutorial i’m trying to scrape basketball starting lineups from flashscore. Here’s an example of a link: https://www.flashscore.it/partita/6PN3pAhq/#informazioni-partita/formazioni As you can see in the middle there’s a code (6PN3pAhq) that corresponds to a particular match: every match has a different one, i scraped all the results (144 matches at the moment) and

Advertisement