M
M
MARMELAD032015-10-05 18:37:02
Python
MARMELAD03, 2015-10-05 18:37:02

How to click on a button on a website using python?

You need to click on the "Call" button on the "Android Remote Control" website. Help me make this happen. What libraries and methods should be used for this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2015-10-05
@MARMELAD03

from selenium import webdriver

driver = webdriver.Firefox()
driver.get('http://yo.ur/pretty-and-cool/url')
element = driver.find_element_by_css_selector('button.with-class#or-id')
element.click()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question