Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Thanks, for your help. I was told to quit that one and do a different POC.
Should be very simple, but again - doesn't work.

This should login to a website with Twitter.

Python
browser = Watir::Browser.start 'http://www.12mass.com/'
browser.link(:class, 'priceLogin').click
sleep 2
browser.element(:class, 'loginTwitter').click
browser.window.last.use do
        browser.text_field(:id, 'username_or_email').set 'name'
        browser.text_field(:id, 'password').set 'pass'
       
        browser.button(:id, 'allow').click
    end


I get to a point where a new window opens, but I can't reach it and fill the credentials...
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900