Questions tagged [findelement]

180 questions
0
votes
0 answers

no such element: Unable to locate element: {"method":"css selector","selector":"#ext-gen275"}

getting unable to locate element exception driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(50)); driver.findElement(By.id("button-1205-btnIconEl")).click(); // String title = driver.getTitle(); // System.out.println("Title…
0
votes
3 answers

driver doesn't close after not finding an element, python

could you find an error in my code? I haven't been able to get over this code for a week now, so I am forced to ask a community. I am trying to download 14.000 html pages into a folder (I use selenium), I have a long list of ids that I paste into a…
Daria
  • 13
  • 4
0
votes
2 answers

Get text from a span element

It is a dynamic span. I want to get the number that keeps changing. In this case it would be 436 Code trials: valorliquido = navegador.find_element_by_css_selector("span[class="woocommerce-summary__item-value"]") Got: valorliquido =…
0
votes
2 answers

Why can I not click on some of the menu lists but I can others?

Page + HTML: In the menu item on the left, I have 9 menu items in the list. I am able to get selenium to click on the first 4, up until the id=item-3. But after and including id=item-4, Selenium just can't click, and gives me a No Such Element…
0
votes
1 answer

Selenium-Java: Code crashes if no element is found

I cannot seem to find a solution on this. This line of code seems to crash if it cannot find it. Sometimes it is there and sometimes it is not: Integer dynamicElement = myDriver.findElements(By.xpath("//iframe[@title='CAPTCHA']")).size(); I then…
0
votes
2 answers

Using Python with Selenium to navigate Python - cannot find link?

I am an accountant and very novice coder. I am trying to use Selenium with Python and Firefox browser to click through a series of webpages. I am just trying to select and click a hyperlink on the page, but I can't seem to locate it with Selenium.…
0
votes
2 answers

driver.find_element(By.XPATH, "xpath") not working

I am trying to learn Selenium in Python and I have faced a problem which stopped me from processing. As you might know, previous versions of Selenium have different syntax comparing the latest one, and I have tried everything to fill the form with…
0
votes
0 answers

no such element: Unable to locate element: {"method":"id","selector":"search-page-list-container"}

NoSuchElementException: Message: no such element: Unable to locate element: I have used this url: request_url = "https://www.zillow.com/arlington-tx/rentals" Zillows website link for rental properties being listed{string interpolation} for page…
0
votes
2 answers

NoSuchElementException using driver.find_element(By.CLASS_NAME,'list-card-heading') in Selenium

For the below line of code: driver.find_element(By.CLASS_NAME,'list-card-heading') I am getting below error: NoSuchElementException Traceback (most recent call last) Input In [23], in () 1…
0
votes
1 answer

Find driver element with Python

I am trying to download a file from MS Edge. The webpage is protected by a username and a password. I am able to open up MS Edge, and navigate to the appropriate page, however, I can't navigate the UserName and PassWord box. An error appears as…
0
votes
0 answers

How to make text import into fields in webview by testing via espresso?

I have activity, and activity create webview from AdvancedWebView. webview load url: webview.loadUrl webpage from this url contains two fields for input. How can I insert test values into this fields? I have esspresso test. lateinit var scenario:…
Slava
  • 443
  • 4
  • 12
0
votes
1 answer

How to locate and click svg class in selenium python

I'm trying to locate the svg class element to be able to move to the next page of the website and be able to make a list of all the pages. Unfortunetly, the only thing I can locate in this element appears to be too complicated for me. I've tried…
tommy
  • 1
  • 1
0
votes
0 answers

try except under loop in python selenium for find element

I am facing a strange issue where my python code takes one minute to complete a loop when i used it under try except statement. The try block contains a driver.find_element which raises exception when it is not found and in the except block i am…
0
votes
1 answer

How to write an XPath to select text with a quote & comma character?

How can I select a XPath that contains a text with both quote & comma character? I have to find an element if the text contains =Yes, It's OK My XPath does not save in ranorex tool even though if i put the text inside the double quotes like…
0
votes
1 answer

Python Selenium find_element only finds every second element by class

I want get every type of bet from this page (3-Way, Double Chance, etc.) but my script only returns every second element. import time from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui…
RZX
  • 27
  • 5