skip to Main Content

Locate HTML elements using Selenium Python

I've tried several ways to locate this element using driver.find_element(By.*) but have had no success. Can anyone provide guidance? HTML Elements: html elements <button class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-10qa0nr" tabindex="0" type="button"> Add Lead…

VIEW QUESTION

Parse a dynamic HTML Page in Python

I would like to scrape an HTML page where content is not static but loaded with javascript. I downgrade Selenium to version 3.3.0 in order to be able to support PhantomJS (v4.9.x does not support PhantomJS anymore) and wrote this…

VIEW QUESTION

Css – Finding nested element using Xpath in Selenium not working

given the following site and locators: https://ultimateqa.com/automation XPATH CONTAINER = (By.XPATH, '//ul[@class="bottom-nav"]') MENU = (By.XPATH, '//li[contains(@class, "menu-item")]') CSS BOTTOM_NAV = (By.CSS_SELECTOR, '.bottom-nav') MENU_ITEM = (By.CSS_SELECTOR, '.menu-item') I need to find inside the BOTTOM_NAV the number of MENU_ITEMS. When using nested…

VIEW QUESTION

Html – How to find link using selenium when "linktext" is a div?

<a href="/r/androidapps/comments/13olal1/what_happens_to_photos_resized_in_samsung_builtin/"> <div class="_1AKeAGcglmBjK1SUUXNFti _1-SZ3VwLjbFwTzaZvU8FBX _1FT0e6kh1BBb_oALAMW_l7 _1yBpz1MEPxxYTxjlEilGtB" data-testid="post-title" style="--posttitletextcolor:#222222"> <h3 class="_eYtD2XCVieq6emjKBH3m">what happens to photos resized in Samsung built-in gallery app</h3> </div> </a> I want "/r/androidapps/comments/13olal1/what_happens_to_photos_resized_in_samsung_builtin/" in the "a" tag. How do I use selenium to get the url as a…

VIEW QUESTION
Back To Top
Search