Questions tagged [findelement]

180 questions
0
votes
0 answers

Automated clicking on a pop up using selenium

I have been trying to automate clicking on a pop up as soon as the site opens up but the error "selenium.common.exceptions.NoSuchWindowException: Message: no such window: target window already closed from unknown error: web view not found" is shown.…
hmmm
  • 1
  • 1
0
votes
3 answers

Python Selenium for Web Scraping not working

from selenium import webdriver import os os.environ['PATH'] += "C:\\Users\\czoca\\PycharmProjects\\pythonProject4\\chromedriver.exe" driver =…
Nolgath
  • 25
  • 3
0
votes
1 answer

Continuing script in selenium when element is not present on a page

I am trying to get selenium set up to send out messages automatically and have not yet got around to check if the specific listing has already been sent a message. This causes selenium to give a NoSuchElementException because its looking for…
hmark
  • 1
  • 1
0
votes
0 answers

Selenium WebDriver in Typescript » How to check that an element does NOT exist

I'm using Cucumber.js running Typescript in Node.js to test a web app. I'm finding it impossible to check that an element doesn't exist in a page because if it doesn't, I always get thrown an error which I can't catch/suppress: × failed Error:…
jonypera
  • 446
  • 2
  • 13
  • 23
0
votes
1 answer

Variable input from lists for find_element selenium function

Hi StackOverflow gurus, I am new to coding and Python but very enthusiastic about it. Your support and option will be huge addition do my development. I am trying to write a Python code, where using Selenium find_element(By.LINK_TEXT,"") I need to…
0
votes
1 answer

I am trying this below code to find the 'Images' button and click on that using python in Pycharm. But its showing some errors

C:\Users\PWTTS\PycharmProjects\pythonProject\venv\Scripts\python.exe C:\Users\PWTTS\PycharmProjects\pythonProject\main.py C:\Users\PWTTS\PycharmProjects\pythonProject\main.py:11: DeprecationWarning: executable_path has been deprecated, please pass…
0
votes
1 answer

Can't find an element with Selenium Python that actually is on the source code

I can't find an element and get an error, but I actually see it when inspecting the element, but if I "print" driver.page_source I can't see it. def screenname(): driver.find_element(By.XPATH,…
0
votes
0 answers

Appium Windows Application Testing only finds elements when I have the application under test open before running the test

When I am running my tests with the application closed to start, it can't find any of the elements I'm asserting. When I run it with the windows application open already, it finds the elements. Any idea what I'm doing wrong? As you can see from…
Don Ross
  • 1
  • 1
0
votes
1 answer

Selenium not getting text depending on the value of the id?

I'm currently working in this website: https://lawebdelaprimitiva.com/Primitiva/Historico%20de%20sorteos/1986.html Tring to obtain the values of the balls, so far i can only get the 7 first values using the for loop that i attach down below, but…
DiegoEwin
  • 11
  • 4
0
votes
0 answers

Trouble with accessing dropdown values while scraping using Python Selenium

I am new to web scrapping. I am trying to scrape a website (for getting flight prices) using Python Selenium which has some drop down menu for fields like departure city, arrival city. The first option listen should be accessed and used. Lets say…
0
votes
0 answers

Can't find element through text

I'm writing an automated test in Java where I want to send text of an element I need clicked, to be found through that text. Here's the code: public void selectElement(String elementName, String type, String input){ By elementToSelect =…
Ema
  • 1
  • 1
0
votes
1 answer

VBA+Selenium+Edge Cannot 'find' element

I've tried all kinds of ele.findElementAs--- and cannot "find" a particular (multiply nested) element on a webpage - even though I can visually see the element (and values) when inspecting the webpage. I've used VBA+Edge+Selenium before and can…
arc
  • 3
  • 3
0
votes
0 answers

Selenium Python find element by class doesn't work, but a similar command in XPATH does

Fairly new to selenium Python so please go easy. For:
0
votes
2 answers

Why don't I have find_element_by_blablabla?

I was using Selenium to automate browser things and I my WebDriver object doesn't have the attributes find_element_by_link_text for example. It only has: find_element() or: find-elements() No other methods starting with find. Is this due to my…
0
votes
1 answer

I'm trying to Check if a certain WebElement is present through chrome drive in java after checking the page is loaded, but it's not working

I'm trying to Check if a certain WebElement is present through chrome drive in java after checking the page is loaded. even though the page is loaded and the element is present the driver can't locate it and I get a NoSuchElementException. if I'll…