selenium webdriver - Display property of a object -
On the login page of StackOverFlow, click on the "Log in using the stack exchange" link and click the "Forgot Password" link Disappears so that the display
forgot the password
Forgotten password
Forgotten password
Forgotten password
How to verify it using the getAttributes () method I
- Thanks
You can use better, like from Selenium.webdriver.support.ui The Eleniam import Vebdraivr
python :
import by import Vebdraivr Seleniamkvebribrivrkcom using. Import from selenium.by videtrewer Import imported_ conditions as the import invoice = webdriver.Chrome () driver.get ("https://stackoverflow.com/users/login") and click the # button and stack_exchange_button = driver.find_element_by_xpath ("//span [text () = 'Login using Stack Exchange) stack_exchange_button.click () Wait for 10 seconds for forgot links to be invisible web driver T (driver, 10). Until (EC.invisible_of_element_located (( By the way, the "link is invisible" printed by. CSS_SELECTOR, "a [id = 'forgot-password']"))), okay, if you still want the status If you do not want to wait, you can see the following elements present:
// a [@ id = 'forgot-password'] [In it (@ style, 'display: none)]
Comments
Post a Comment