Skip to content
Advertisement

Tag: selenium

Why selenium dont find tag and class

I recently started using selenium and I can’t solve one problem. When I use find_element_by_tag(class)_name or _css_selector raise error: But the element I’m looking for exists. For example: Output: But if I want to find “navbar-brand” class, I can do it. What’s the problem? And if I use find_elements, return empty list. P.S If somebody can advise some useful material

Python – Selenium – webscrape table with text in html using WebDriverWait

I try to webscrape all the Company Names with 500 or more employees of the following website: https://de.statista.com/companydb/suche?idCountry=276&idBranch=0&revenueFrom=-1000000000000000000&revenueTo=1000000000000000000&employeesFrom=500&employeesTo=100000000&sortMethod=revenueDesc&p=1 I wrote a code to scrape the Company Names of the the first site and the script will then click on the “Next Site Button” and scrape again the names. The names will be saved into a list, and this will happen

How to extract text from div class using Selenium with Python

I am trying to create a bot to pay some bills automatically. The issue is I can’t extract the amount(text) under div class. The error is element not found. Used driver.find_element_by_xpath and WebDriverWait. Can you please indicate how to get the highlighted text-see the attached link? Thanks in advance.Page_inspect Answer I believe there was some issue with your xpath. Try

ModuleNotFoundError: No module named ‘webdriver_manager’ error even after installing webdrivermanager

I’ve installed webdrivermanager on my windows-10 system Still whenever I am trying to use webdrivermanager I’m facing an error. Code Block: Console Output: Can someone help me, if I’m missing something? Incase it adds any value, I’m using sublimetext3 Answer Update (thanks to Vishal Kharde) The documentation now suggests: Solution: Install it like that: instead of pip install webdrivermanager. Requirements:

Advertisement