-
-
Save MITsVision/50b4ca3ec700eaec96cb63590882bbd6 to your computer and use it in GitHub Desktop.
Revisions
-
anhldbk revised this gist
Oct 1, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ driver = webdriver.Firefox() driver.get('https://www.facebook.com/') with open('jquery-1.9.1.min.js', 'r') as jquery_js: jquery = jquery_js.read() #read the jquery from a file driver.execute_script(jquery) #active the jquery lib driver.execute_script("$('#email').text('anhld')") -
anhldbk renamed this gist
Oct 1, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
anhldbk created this gist
Oct 1, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ from selenium import webdriver driver = webdriver.Firefox() driver.get('https://www.facebook.com/') with open(‘jquery-1.9.1.min.js’, ‘r’) as jquery_js: jquery = jquery_js.read() #read the jquery from a file driver.execute_script(jquery) #active the jquery lib driver.execute_script("$('#email').text('anhld')")