Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97853

selenium retrieves an error when selecting ID/XPATH

$
0
0
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from webdriver_manager.chrome import ChromeDriverManager
import chromedriver_binary
from selenium.webdriver.common.keys import Keys
import time

element = driver.find_element_by_xpath('//*[@id="username"]').send_keys(user_name)

This is how code looks like (I've tried xpath,id, class name, etc..) but I will ALWAYS get an error

selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//[@id="username"]"} (Session info: chrome=80.0.3987.87)

I am trying to get this done on here

Any ideas please?


Viewing all articles
Browse latest Browse all 97853

Trending Articles