I am trying to create an Instagram scraping bot that collects a list of Followers and Following using Python + Selenium. However, that list keeps on loading when the user scrolls until the list is exhausted. I am attaching a screenshot for reference (some content hidden due to privacy reasons): Now, I believe I have two ways to achieve this:
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
Python Selenium’s send_keys function will not trigger a key after tabbing to the ReCaptcha v2 checkbox (to check the box)
As I, among others, were having trouble simulating a click on the ReCaptcha v2 checkbox, one user found away to check it with Selenium’s Keys. That method is not working for me. It traverses to the checkbox, but it just remains highlighted. It’s not a space that isn’t able to be sent at that point, but any key. Answer You
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
Is it possible to resume Selenium code when the browser lands on a certain url?
Simple question, is it possible to resume selenium code the moment the browser lands on a certain URL? Answer
Stale element: iterating through webelement list python
I’m using selenium for the first time to get some information about a fantasy soccer game I play with my friends (we have a competition). I’m facing issues iterating through a list of webelements. Apparently they become stale. Here’s some code and details: I was able to get to the competition’s page by myself. This page has cards for every