Skip to content

Commit d8750ae

Browse files
Ryan MitchellRyan Mitchell
authored andcommitted
Removed linebreaks
1 parent 9b9525d commit d8750ae

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

chapter13/3-interactiveTest.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from selenium.webdriver import ActionChains
55

66

7-
driver = webdriver.PhantomJS(executable_path='<Path to Phantom JS>')
7+
driver = webdriver.PhantomJS(executable_path='phantomjs/bin/phantomjs')
88
driver.get("http://pythonscraping.com/pages/files/form.html")
99

1010
firstnameField = driver.find_element_by_name("firstname")
@@ -18,9 +18,7 @@
1818
################
1919

2020
### METHOD 2 ###
21-
actions = ActionChains(driver).click(firstnameField).send_keys("Ryan")
22-
.click(lastnameField).send_keys("Mitchell")
23-
.send_keys(Keys.RETURN)
21+
actions = ActionChains(driver).click(firstnameField).send_keys("Ryan").click(lastnameField).send_keys("Mitchell").send_keys(Keys.RETURN)
2422
actions.perform()
2523
################
2624

0 commit comments

Comments
 (0)