Skip to content
Advertisement

Tag: selenium

Selenium continue script even if element is not present

This is an example of what my code currently looks like, When for instance element ID “PhoneNumber” isn’t present, the script will stop with the error code “Unable to locate element”, what needs to be added or changed in order to continue the script without abruption even if a certain element is not present? Thanks in advance. Answer You can

Selenium – Wait for the ScrollIntoView to finish

I need to scroll to an element and take a screenshot of the page but the driver takes the screenshot before the page is completely scrolled to the element. I’ve used a time sleep in this way but I really don’t want to use sleeps since they are not test-oriented. I’ve tried to wait for the element to be visible

Selenium + Python – entering text in form with no label/id?

I”m trying to enter some text in the box as shown below. I’ve narrowed the element down to SMDMainText. I’ve tried numerous ways of finding the element, however when I try to send_keys(), the result is that I get the error “element not interactable”. The issue that I’m facing is that I’m trying to find an element called <input automplete=”on”>

ActionChain click() returning Web Element instead of clicking

I was wondering how to simulate a button click on a login page using Selenium. When I try the following, it gives me an error saying that the button is not clickable at the coordinates listed (635, 353). When I try using an ActionChain, it returns the Web Element (the button that’s supposed to be clicked) rather click. Answer I

Message: element click intercepted: Element … is not clickable at point (657, 594). Other element would receive the click with Selenium

I was making a webscraper to get gpu stocks from https://www.nvidia.com/en-us/shop/geforce/?page=1&limit=9&locale=en-us to get my hands on a 30 series card, I am using python with bs4 and selenium for this. I want to load more shopping items, on the website it has this load more button. So I grabbed its class and made it so selenium clicks it: but it

Why does my Selenium URL_to_be statement not work?

Selenium does not seem to register that I manually go to the publish0x.com page. Does anyone know a solution? My goal is to manually do the captcha at the login page and afterwards, when I log in and land on the main page I want the script to resume. Answer There are two ways I can think of, one by

Advertisement