Python: How To Click A Button In A Web Page Using Python?
Below you can see a screen shot of the control group. How can I click this area using python?
Solution 1:
To click this area using python you need to get work with Python bindings for Selenium. Use next url to install it and url of how to use it. After getting familiar with content provided by urls above, it shouldn't be a problem to create script which click on button.
After installation of selenium your code to click that button would be quite similar to the code below:
from selenium import webdriver
driver = webdriver.Firefox()
# Go to your page url
driver.get('your page url')
# Get button you are going to click by its id ( also you could us find_element_by_css_selector to get element by css selector)
button_element = driver.find_element_by_id('button id')
button_element.click()
Post a Comment for "Python: How To Click A Button In A Web Page Using Python?"