Questions tagged [findelement]

No recommendations have been provided for implementing this particular tag … as of now!

Challenges encountered when trying to use Python Selenium for web scraping

from selenium import webdriver import os os.chdir("C:\Users\czoca\PycharmProjects\pythonProject4") driver = webdriver.Chrome() driver.get("https://www.sitetoscrape.com/page1.html") driver.implicitly_wait(10) element1 = driver.find_element(By.ID, "Allo ...

Troubleshooting Selenium JS: Challenges with Locating Elements Across Pages

I'm facing a challenge in accessing elements on pages other than the main page in my electron app. Although there are multiple elements that load when the app starts, I can only interact with elements on the initial page. I believe the issue lies in how I ...

Unable to locate element by id in the search results on Amazon using Selenium

I have implemented the given python script: from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.firefox.options import Options from selenium.webdriver.support import ...

In Selenium with Java, we utilize @FindBys and @FindAll annotations to locate elements. How can we achieve the same functionality in Python using a single

I am curious about how to use @FindBys and @FindAll in Selenium Java to locate elements in Python. Can anyone provide guidance on this? @FindBys( { @FindBy(className = "class1") @FindBy(className = "class2")} ) Your help is much apprec ...

Is it possible to loop through each row in a table using Cypress and execute the same actions on every iteration?

I have a frontend built with html/typescript that features a table of variable length containing action buttons in one of the columns. I am looking to create a Cypress test that will click on the first button of the first row, carry out a specific task, an ...