Questions tagged [selenium-webdriver-python]

73 questions
0
votes
0 answers

how to navigate through multiple pages of a website python

How to navigate through multiple pages of a website python, the url doesn't change when changing pages and also doesn't have a NEXT button. Using selenium and python. I already tried with Select from selenium, and it didn't work. My URL is dynamic,…
0
votes
0 answers

access element html using selenium python

So I have an HTML code as follows. So in that HTML code, I want to retrieve the PODES button. Therefore, I've implemented the following code to retrieve the PODES button
0
votes
2 answers

TypeError: WebDriver.__init__() got an unexpected keyword argument 'executable_path' error using Selenium Python

I am having this problem in Whatsapp bot sending auto message in python. Code trial: from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.chrome.options import Options import time message = "this is…
0
votes
0 answers

Selenium & Python - Webdriver manager causes UnicodeEncodeError

I encounter this error when Webdriver manager is required to update any browsers used (Chrome, Firefox or Edge): Launching pytest with arguments -m debug --html=reports/report.html --browser=edge --no-header --no-summary -q in…
0
votes
1 answer

unable to import selenium.webdriver.common.keys Does anyone knows how to solve this?

from selenium import webdriver from selenium.webdriver.common.keys import Keys driver = webdriver.Chrome() driver.get("https://www.google.com/") I'm trying to use selenium for studying crawling. Using M1 Mac. I barely find answers to that…
0
votes
1 answer

How to select 1st div with same classname but different conditions using Python Selenium

New to Python Selenium and I want to select the 3rd:
from the below 3
classes with the same class name. I'm not sure what is meant by <... "data-is-fake-main-panel" = "true" or "false"> after
0
votes
0 answers

Firefox Webdriver Path Error When Trying to Install Addon/Extensions to Selenium Remote Webdriver

A simlar issue was raised in this post and I have followed the approach suggested by @J3soon, the following code is trying to install an extension to my remote webdrive to bypass captcha. @contextmanager def…
0
votes
2 answers

Python Selenium: Click element by xpath

I am trying to click these buttons with Selenium:
0
votes
0 answers

With Selenium, I want to find elements by text like Ctrl-F “Find in Page” in Chrome does

Working with Selenium I need to find an element. Contrary to what is recommended, I want to find that element based on what the user sees. I know that this is difficult to solve in the general case, but at least I want to be able to go for elements…
0
votes
1 answer

The term "'pip' is not recognized as the name of a cmdlet, function, script file, or operable program" error installing Selenium Python bindings

I am trying to install Python Selenium, pip install selenium, but I get this error: File "", line 1 pip3 install selenium ^^^^^^^ SyntaxError: what is the solution for invalid syntax Snapshot:
0
votes
0 answers

Get element's innerText from multiple pages

I need to get the innerText of multiple pages that look like this: website.com/abc/xyz/page-{}. So far I'm using Selenium and undetected_chromedriver to bypass CloudFlare, get the website and get content using javascript, then click on next button…
PhanLong
  • 43
  • 6
0
votes
1 answer

Selenium webdriver can't find visible element

I have a problem with finding element on a webpage. It's a popup window with a confirmation [NO]/[YES]. Selenium can find a parent of a buttons but not a button itself. Popup window view HTML block of code:
0
votes
1 answer

Unexpected Multithreading Output when Web Scraping with Selenium (Python)

from selenium import webdriver from selenium.webdriver.chrome.options import Options from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.common.by import By from concurrent.futures import ThreadPoolExecutor import…
0
votes
1 answer

javascript error: Right-hand side of 'instanceof' is not an object error using expected_conditions with Selenium Python

I have some code in selenium/python, which used to work, But now I'm getting: javascript error: Right-hand side of 'instanceof' is not an object I don't know if it's something that was changed in the angular application, or how this error is…