I want to get Xpath in website to click by using Selenium. I find elements in Chrome, this Click have:
<span data-v-eb4b31da="" class="btn_claim">Claim Now</span>
Details is here:
I try many time but i can get what i want. My code here:
from selenium import webdriver from selenium.webdriver.chrome.service import Service from webdriver_manager.chrome import ChromeDriverManager
service = Service() options = webdriver.ChromeOptions()
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()))
driver.get("https://web.telegram.org/") button = driver.find_element(By.XPATH, "//button/span[text()='Claim Now']")
Thank for your help