Aug-14-2024, 07:14 PM
So I'm trying to log onto my Netgear router automatically using selenium
I was successful in doing so
What I'm trying to add to it is the ability
to click on ADVANCED tab
driver.find_element(By.TAG_NAME, "ADVANCED").click()
I have tried using
By.XPATH,
By.LINK_TEXT,
By.TAG_NAME,
I've tried them all with no success nothing actually happens
can anyone help me to figure out what I'm doing wrong
this is what I get
<a id="AdvanceTab" onfocus="this.blur()" href="#" style="background: url("../img/tab-nonactive.gif") 0px center no-repeat;"><span>ADVANCED</span></a>
<span>ADVANCED</span>
I was successful in doing so
What I'm trying to add to it is the ability
to click on ADVANCED tab
driver.find_element(By.TAG_NAME, "ADVANCED").click()
I have tried using
By.XPATH,
By.LINK_TEXT,
By.TAG_NAME,
I've tried them all with no success nothing actually happens
can anyone help me to figure out what I'm doing wrong
from selenium import webdriver from selenium.webdriver import Keys from selenium.webdriver.common.by import By import time from selenium.webdriver.common.devtools.v125 import browser driver = webdriver.ChromeOptions() driver.add_argument("--start-maximized") driver.add_experimental_option("detach", True) driver = webdriver.Chrome(options=driver) # router information #url = 'http://' username = '' password = '' ip = '' driver.get('http://' + username + ':' + password + '@' + ip) driver.find_element(By.TAG_NAME, "ADVANCED")..click()When I right-click on ADVANCED and then on insects
this is what I get
<a id="AdvanceTab" onfocus="this.blur()" href="#" style="background: url("../img/tab-nonactive.gif") 0px center no-repeat;"><span>ADVANCED</span></a>
<span>ADVANCED</span>