Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 1 year ago. Improve this question
Tag: selenium-chromedriver
element_to_be_clickable is giving TimeoutException
for the URL I want to induce clicks on the next page button. The next page button is a <span> tag with class attribute = ‘fa fa-angle-right’. When I try the following, it gives me a TimeoutException. This doesn’t work for any page, and even the last page. Where am I going wrong ? Any help is much appreciated! Answer
Get element text with a partial string match using Selenium (Python)
I am trying to extract the text from within a <strong> tag that is deeply nested in the HTML content of this webpage: https://www.marinetraffic.com/en/ais/details/ships/imo:9854612 For example: The strong tag is the only one on the webpage that will contain the string ‘cubic meters’. My objective is to extract the entire text, i.e., “138124 cubic meters Liquid Gas”. When I try
Python Selenium send_keys one by one
I am trying to login to this site automatically using Python-Selenium. However, as you might noticed the password input place is not receiving driver.send_keys. code: Answer 1 The site starts blocking automated requests after some amount of them is sent. I’ve added one option on how to avoid bot detection. Look for similar questions on this. 2 You can wait
How to display something else when XPath hasn’t been found and overwriting previous Label
I am trying to create this app so that it finds the streamers views, if it doesn’t find the XPATH I want it to output “Streamer is offline” but it just outputs “Streamer is offline” even for online streamers. Also, when typing a new streamer the label does not overwrite, rather creates a new line. Answer In tkinter we use
Message: element not interactable. Xpath correct
How can I click? Obviously with the mouse I can, and a new mask appears. While with the click () the following error appears. Obviously the Xpath is correct in fact it reports the following code = this message error: selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable Answer Use WebDriverWait() and wait for element_to_be_clickable() you need to import below libraries
Python, Selenium | Can’t Click Test Here
Hello, I am trying to click the button ‘Test Here’ using selenium in Python via chrome. I have no clue what it is not working. My code is shared below… driver.find_element_by_xpath(“//*[contains(text(), ‘Test Here’)]”).click() Answer Click the button and not the span. Add /parent::button would fix your xpath.
Selenium python how I preform a click on toggle button
I am trying to click in call loop toggle with Selenium with the WebDriver on Python. the html code: this is the button: I have tried few options: the filed message: Answer Try using webdriver wait
Problem with looping over XPaths selenium
I’m trying to collect news articles off yahoo finance using selenium. I got it to work with 1 article, but when I try looping over the different articles it doesn’t make the click. The reason I have the second ‘except’ ‘continue’ is because there are ads in between the articles which I don’t want to click. The structure of the
using Selenium to get texts inside ‘ul’ tag?
Please help me to find the solution to get the text inside ‘ul’ tag. I want to get the information which is separated with commas like: ‘Contains Enzymatically Active B-Vitamins, Dietary Supplement, Non-GMO LE Certified’ website link: https://ca.iherb.com/pr/Life-Extension-BioActive-Complete-B-Complex-60-Vegetarian-Capsules/67051 picture: enter image description here This is the HTML code: Answer This should do it: Output: