webdriverwait

Unable to Click to next page while crawling selenium

Unable to Click to next page while crawling selenium Question: I’m trying to scrap the list of services we have for us from this site but not able to click to the next page. This is what I’ve tried so far using selenium & bs4, #attempt1 next_pg_btn = browser.find_elements(By.CLASS_NAME, ‘ui-lib-pagination_item_nav’) next_pg_btn.click() # nothing happens #attemp2 …

Total answers: 1

Python selenium wait until element has text (when it didn't before)

Python selenium wait until element has text (when it didn't before) Question: There is a div that is always present on the page but doesn’t contain anything until a button is pressed. Is there a way to wait until the div contains text, when it didn’t before, and then get the text? Asked By: Nicholas …

Total answers: 2

Getting data after page update using Selenium

Getting data after page update using Selenium Question: I am wondering if anyone knows a way to get page data after it updates content from a post request via Selenium. I understand that the way Selenium works is by when you get() a website it parses the content at its current state and then that …

Total answers: 1

Selenium unable to locate though using expected conditions

Selenium unable to locate though using expected conditions Question: Selenium is unable to locate the element by its xpath even though I’m using expected conditions to wait 3 seconds for element visibility. I’m trying to interact with the search bar, send a string, and press enter. My code is below: def search_bar(self, search: str, xpath: …

Total answers: 1

How to use WebDriverWait to send text within www.365sport365.com if iframe is present?

How to use WebDriverWait with undetected_chromedriver to send text within www.365sport365.com if iframe is present? Question: I wanted to make a script that searches for given matches, but it seems I’m unable to interact with the site and I’m not sure if it’s beacause there’s an iframe that I’m ignoring or the site has some …

Total answers: 1

How to choose a dropdown menu option in selenium python?

How to choose an option from a non select dropdown menu in selenium python? Question: I want to click dropdown menu button in this html code. <div id="menu-button-:r1p:" aria-expanded="true" aria-haspopup="menu" aria-controls="menu-list-:r1p:" class="chakra-menu__menu-button css-6iqp1a" data-active=""> <span class="css-xl71ch"> <div class="css-70qvj9">Aa </div> </span> </div> <div class="css-r6z5ec" style="visibility: hidden; position: absolute; min-width: max-content; inset: 0px auto auto 0px;"> <div …

Total answers: 1

How to use Selenium Python to get a field information of each linked page

How to use Selenium Python to get a field information of each linked page Question: The context is springerlink. For example this series of books GTM I want to get the information located at the bottom of each book’s webpage: All I want is the E-ISBN information on each page. Is there’s a way(not limited …

Total answers: 2

Make Selenium wait until text inside web element changes

Make Selenium wait until text inside web element changes Question: I’m using Selenium to upload an excel file to a website automatically. To make sure upload is complete before proceeding i use time.sleep(60) but i want to make the code a bit smarter. after the upload field, there’s a label element. <label id="upload_status">only .xlsx files …

Total answers: 2

Cannot run selenium test

Cannot run selenium test Question: I am new to automation testing. Currently downloaded selenium 4 and trying to automate login into a sample site.Please help me with this. Been struggling all day in this. And I can’t even understand my error messages in the console Here is the code that I am trying to work …

Total answers: 2

Selenium can't find element by class name which needs to be clicked

Selenium can't find element by class name which needs to be clicked Question: On this page: https://finance.yahoo.com/quote/AAPL/balance-sheet?p=AAPL I want to click the "Collapse All button" Which are these classes: I have tried this in a few different ways but it looks like selenium can’t the button. What can be the problem with mij code? url …

Total answers: 1