Questions tagged [selenium-webdriver-python]
73 questions
0
votes
1 answer
Python selenium can't get text from website
I'm writing a code that uses https://www.deepl.com/translator to translate english movie titles to polish (since it's the only translator i know that doesn't translate them literally) but I'm unable to extract translated text from…

kubek
- 3
- 2
0
votes
2 answers
Selenium for Chrome version 103 is just crashing, I know it's not my code because whilst its still crashing at one time it still ran
The script is crashing on Chrome version 103 only it's still running on 102. In one instance, it ran but crashed while executing a loop for its fifth time. It is selenium + python. What should I do?

Dennis Mwangangi
- 11
- 4
0
votes
1 answer
How do I select an element within a frame without an ID in Python/Selenium?
I'm using Python 3.9, chromedriver 101 and the latest version of Selenium I'm trying to select and click an element within a frame without an ID. The HTML for the frame and element I want to click on are
0
votes
1 answer
Using Selenium+Python, I am finding an element with the find element command, but the element is dynamic, how can I prevent it throwing an exception?
So I am using find_element to define a variable like so
WinCondition = driver.find_element(By.XPATH, "//div[@class='bonus-game-state back bonus-game-end red']")
However the element is dynamic, this is intentional, but when the code does not find…

KenBurnz
- 1
0
votes
2 answers
How to select prompts on a dropdown menu using Selenium and Python
My goal is to search for an item on the microcenter store. However, I need to select a store to choose in a dropdown menu so that I can get the proper search results. I cannot figure out how to do this. For some reason…

PyroManieAct
- 24
- 2
0
votes
1 answer
How to login to `moz.com` with selenium?
I can log in to moz.com without any problems with my default Windows browser (Chrome), but I can not log in with the Chrome driver. Is there any problem with the following code snippet?
from selenium import webdriver
from…

A-Mehrabi
- 66
- 1
- 7
0
votes
0 answers
Open whatsapp on a headless browser
Use case:
Sending out automated WhatsApp messages using pythonanywhere. Step by step logic below:
non-coders write on a gsheet the phone numbers to which we should
send out the messages
the gsheet data is read (using gspread in…

JCVLC
- 5
- 4
0
votes
2 answers
What is the xpath for the Read more" link on this page to use with Selenium Python
I am getting frustrated trying to find the xpath for the first "Read more" button in the review section of this website: https://www.tripadvisor.com/Hotel_Review-g60982-d209422-Reviews-Hilton_Waikiki_Beach-Honolulu_Oahu_Hawaii.html
I'm trying to…

bandcar
- 649
- 4
- 11
0
votes
2 answers
How to login within Tradingview site using Selenium and Python
I'm new to Python. To enter the Tradingview.com site with Selenium library.
I wrote the following code and used Xpath and CSS selector to give the address, and the Click method, but it does not work properly. Has anyone solved this problem?
import…

matin_mhz
- 1
- 2
0
votes
2 answers
Seleneium Python shows DeprecationWarnings with driver.find_element_by_xpath()
Okay, so I am working on my laptop rn and I copy and pasted my code from my PC and suddenly it's not working. I have installed the same Selenium but now it is acting up, I am receiving DeprecationWarnings, driver.find_element_by_xpath isn't working…

Fraser Dobie
- 19
- 3
0
votes
1 answer
Selenium returning a false after screenshot being captured
Whenever I am trying to capture a screenshot from Selenium and trying to save the screenshot to a specified folder, it is returning false.
driver.find_element_by_tag_name('body').screenshot(os.getcwd()+"/PermitSide/"+folio_number+".png")
However…

Daremitsu
- 545
- 2
- 8
- 24
0
votes
0 answers
username and password to url in python selenium
Introduction:
i am doing UI testing with python and selenium and i am blocked when sign in page is asked as pop up window and i only seen best way is to pass the username and password to the url.. but my username contains "@" and "*" i even tried…

Sathish Chinnasamy
- 91
- 2
- 7
0
votes
0 answers
Injecting CSS into Selenium driver causes javascript error in Linux, not in macOS
Below python (v. 3.9.7) function is injecting CSS styles, that are loaded from a standard CSS file, into a selenium driver object. While in macOS (11.5.2, homebrew) the styles are applied correctly, in Linux (Ubuntu 20.04) the styles were not…

Madamadam
- 842
- 2
- 12
- 24
0
votes
2 answers
Python Selenium - how to click dynamic generated href page links
I am automating a process using selenium with python. But I am stuck with something. I have to click a link using selenium. This link is href and it will be generated dynamically every time. The href link will be something like 3. For another page…

Santhiya
- 1
0
votes
0 answers
Running Selenium in docker container
Console Output: https://i.stack.imgur.com/x2CAN.png
I'm trying to run a python scrip using selenium in a docker container. There hasn't been any issues running other scripts using selenium, so I know it's not an issue with the chromedriver path.…

Rex G
- 11
- 2