We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b9525d commit d8750aeCopy full SHA for d8750ae
chapter13/3-interactiveTest.py
@@ -4,7 +4,7 @@
4
from selenium.webdriver import ActionChains
5
6
7
-driver = webdriver.PhantomJS(executable_path='<Path to Phantom JS>')
+driver = webdriver.PhantomJS(executable_path='phantomjs/bin/phantomjs')
8
driver.get("http://pythonscraping.com/pages/files/form.html")
9
10
firstnameField = driver.find_element_by_name("firstname")
@@ -18,9 +18,7 @@
18
################
19
20
### METHOD 2 ###
21
-actions = ActionChains(driver).click(firstnameField).send_keys("Ryan")
22
- .click(lastnameField).send_keys("Mitchell")
23
- .send_keys(Keys.RETURN)
+actions = ActionChains(driver).click(firstnameField).send_keys("Ryan").click(lastnameField).send_keys("Mitchell").send_keys(Keys.RETURN)
24
actions.perform()
25
26
0 commit comments