Using webdriver unable to click "Sign in" button in "https://login.microsoftonline.com"

574 views
Skip to first unread message

Ramdeen Dwivedi

unread,
Feb 6, 2014, 12:07:01 PM2/6/14
to seleniu...@googlegroups.com
Hi All,

I am trying to click "sign in" button in https://login.microsoftonline.com .  driver.findElement(By.id("cred_sign_in_button")).click();  //driver.findElement(By.xpath("//span[@id='cred_sign_in_button']")).click();


--
Regards,
RAMDEEN PRASAD DWIVEDI
ISTQB - ISEB Certified Test Engineer
Pointcross Pvt.com

Krishnan Mahadevan

unread,
Feb 7, 2014, 7:33:57 AM2/7/14
to Selenium Users
Ok. So what is the problem here ?
What is the error that you get ?

What browser are you working with ?
What is the client bindings flavor you are using ? [ Java/.Net ]
What is the Selenium version that you are using ?

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAPdgtn%3Dsjeme6chokR9P7uAWYyPNBTbgT4_SKN_HqMEKQqVj%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Oscar Rieken

unread,
Feb 7, 2014, 7:52:17 AM2/7/14
to seleniu...@googlegroups.com
More importantly do you work for microsoft? 
Do you have permission to use their site?
If you say no to both of these I suggest reading their ToS.


Boris Andreev

unread,
Aug 17, 2015, 1:18:55 AM8/17/15
to Selenium Users
Hi, I've got the same problem. 
That doesn't what driver is used and stuff.
The reason is very simple, by the time when you try to click the button which is span actually, it's not ready to be clicked due to complicated microsoft site logic.
Here is the solution, instead of clicking this button, submit the form that contains user_id and user password:

driver.FindElement(By.Id("cred_userid_inputtext")).SendKeys("name");
driver.FindElement(By.Id("cred_password_inputtext")).SendKeys("password");
driver.FindElement(By.Id("credentials")).Click();

Best, Boris.
Reply all
Reply to author
Forward
0 new messages