My "view" button has the following element:
<a href="../a/stutransDet.php?sid=23" style="text-decoration: none; FONT-SIZE: 1.0em; color:black" target="">View Grade</a>
I selected the "view" button like this
view = driver.find_element_by_xpath("/html/body/div/div/div[2]/table/tbody/tr/td/table/tbody/tr[2]/td1/div[5]/a")
a = view.get_attribute('href') # www.abc.com/a/stutransDet.php?sid=23
What I want is that I'll change the "href" of "view" so that when I click the "view" button, it will redirect to
www.abc.com/a/stutransDet.php?sid=33instead of
www.abc.com/a/stutransDet.php?sid=23
Is this possible? this answer didn't work for me