Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from selenium import webdriver
- from selenium.webdriver.common.by import By
- import time
- driver = webdriver.Chrome()
- driver.maximize_window()
- driver.get("https://omayo.blogspot.com/")
- # Assuming "but2" is the ID of the button
- button = driver.find_element(By.ID, "but2")
- # Check if the button is clickable (enabled)
- if button.is_displayed() and button.is_enabled():
- print("Button is clickable.")
- button.click()
- else:
- print("Button is not clickable.")
- time.sleep(100)
- driver.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement