Display results as :
Advanced Search

Go down
Posts : 7
Join date : 2013-06-20

Login to twitter account

on Thu Jun 20, 2013 6:21 pm

I have started my automation project since 2 days. I need to login to twitter account and verify or click on feedpost.
While I am trying to login to twitter, it is taking me to "We gotta check are you human?" page. Since this page
includes image and text to be input for verification, I dont know how to solve this.
Has anyone faced this problem? How can I avoid this authentication.

This doesnt happen when I login to facebook account.

If anyone has information, please reply as I am stuck at this point.

Posts : 1
Join date : 2013-06-22

Re: Login to twitter account

on Sat Jun 22, 2013 3:57 am
There is a article related to your question, the author has tried rewriting the expected captcha hidden value using javascript, and then did a sendKey to set the actual value (as done by user usually). Something similar should be possible as the twitter site also has a "recaptcha_challenge_field" that stores a hidden value and i am anticipating it to contain the expected value. Yet to try, when time permits

To reach the article do a google for "Automating(Breaking) captcha using Selenium Webdriver", click on the first link.
Posts : 3
Join date : 2013-06-10
Age : 30
Location : Hyderabad

Twitter Login Script

on Sat Jun 22, 2013 10:08 pm
Hi HemaPen,

I am able to login to Twitter account successfully without taking me to Captcha page. Can you pls try the below code, and let me know if you face any issues.. 

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.By;

public class LoginToTwitter {
public static void main(String[] args) throws Exception {
WebDriver fd=new FirefoxDriver();
Posts : 7
Join date : 2013-06-20

Re: Login to twitter account

on Mon Jun 24, 2013 10:57 am
Hi Sree and Kavitha,

Thank you for your reply.

I am using chrome driver and Ideally none of this should matter. 
But still I could not login without captcha screen popping up.

However, when I tried with WebdriverBackedSlenium, I could login successfully without getting captcha screen.

I will have to look at breaking captcha and learn to break if in case I run into captcha anytime.

Thanks again for your reply,
Sponsored content

Re: Login to twitter account

Back to top
Permissions in this forum:
You cannot reply to topics in this forum