google chrome - Python to view and manipulate web page -


i want use python edit element on webpage. i've been trying figure out how use selenium that. right now, have far...

driver = webdriver.chrome() driver.get('https://www.website.com') elem = driver.find_element_by_id('id') print(elem) 

reading through documentation (http://selenium-python.readthedocs.io/getting-started.html) noticed following

elem.send_keys("pycon") elem.send_keys(keys.return) 

but i'm little confused...is changing id name? want change different aspect of element find. if point me in right direction, or me print out more useful elem (typical output looks (session="8428be97c843ee6fecc9038bceccbc0e", element="0.0761228464802568-1")), i'd appreciate it!

selenium isn't tool edit elements on website. used commonly automate tests imitating user behavior on website.


Comments