jeanphix/Ghost.py

ghost.py dont work properly with i frames

Opened this issue · 1 comments

i m just trying to perform simple click on object will till Ajax call completed ,but not getting any success,i think ghost not loading Dom fully ,please help
from ghost import Ghost
ghost = Ghost()

session= ghost.start(user_agent='Mozilla/5.0 (Windows NT 5.1; rv:29.0) Gecko/20100101 Firefox/29.0',wait_timeout=80,display=True, )
session.open("https://www.google.com/recaptcha/api2/demo")
session.wait_for_page_loaded()
session.sleep(3)
session.frame(0 )
session.click('.recaptcha-checkbox-checkmark' ,expect_loading=True )

session.wait_for_page_loaded()
session.frame()#move back to main frame
session.frame(1)
session.click('#recaptcha-audio-button' , expect_loading=True)
session.wait_for_page_loaded()
session.sleep(10)

this is not problem in ghost.py ,but ghost.py uses java script ,we cant humanly click with java-script,i think with we need a J query library to perform human click ,any idea which J query library can we use to perform humanly click?