Untitled

mail@pastecode.io avatar
unknown
plain_text
18 days ago
543 B
1
Indexable
Never
driver.get('https://app.zetaswap.com/')
time.sleep(3)
driver.refresh()
time.sleep(2)
connect_wallet = WebDriverWait(driver, 30).until(
    EC.element_to_be_clickable((By.XPATH, "//*[@id='native-widget']/div[9]/button")))
connect_wallet.click()
time.sleep(3)
shadow_root = driver.find_element(By.XPATH, '/html/body/onboard-v2').shadow_root
SignInButton = driver.execute_script("return document.querySelector('onboard-v2').shadowRoot.querySelector('div.container.flex.items-center.svelte-tz7ru1')")
SignInButton.click()
time.sleep(10)
Leave a Comment