How to capture the resulting page after clicking on a link element?

34 views
Skip to first unread message

Pooja Shree Vanitha

unread,
May 25, 2016, 2:50:35 AM5/25/16
to phantomjs
Hi there..
            I have been trying to open a webpage and then click on the SIgn In link in that page which is placed inside a div.

for example, 
                         <div classname="signing">
                                            < a classname ="signin" href=" " onclick="push_event"/>
                                                       <a classname="signup" href=" " onclick="push_event"/>
                         </div>

and i am using


document.getElementsByClassName('signing')[0].getElementsByClassName('signin').item(0).click()     


to successfully redirect from the signin link click to the next page login ( when i inspect the element and check this command in console)


But through javascript in phantomjs i could not redirect to the login page and page.render still yields the screenshot of the previous page .




Please do help me with your answers !
Reply all
Reply to author
Forward
0 new messages