Created
May 28, 2020 10:05
-
-
Save seleniumgists/e95c6f39059d965838547cb47997ff59 to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Searching element of jQuery HTML popup and click on it | |
| 24 driver.find_element_by_xpath("/html/body/div[1]/div[1]/header/div/div[1]/div/div/div[2]/div[1]/div[2]/div/span").click() | |
| 25 # Waiting for presence of element | |
| 26 WebDriverWait(driver, 10).until( | |
| 27 EC.presence_of_all_elements_located((By.XPATH, "//*[@id='logEmailInput']//*[@id='input-32']")) | |
| 28 ) | |
| 29 # Send creds to login popup | |
| 30 driver.find_elements_by_xpath("//*[@id='logEmailInput']//*[@id='input-32']").send_keys("<mailto:newcrmtestreal1@dd.com|newcrmtestreal1@dd.com>") | |
| 31 driver.find_elements_by_xpath("//*[@id='password']//*[@id='input-37']").send_keys("1Q2w3e4r") | |
| 32 # Click on login button | |
| 33 driver.find_elements_by_xpath("//*[@id='AvasWidgetLoginSubmit']/html/body/div[2]/div/main/div/div[2]/div/div/div/div/div/div/div/div[1]/div/div/div/div/div/div/form/div/div[2]/div/button").click() | |
| 34 # Waiting for presence of webtrader_real1 element |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment