A
Alex Lin
Hi,
I tried to use Watir & ruby & IE9 to automate Facebook login but seems
the "Login" button is protected by Facebook.
Below is my code snip:
------------------------------------------------
ie = IE.new
ie.goto('http://www.facebook.com/login.php')
ie.text_field
id, 'email').value = @user
ie.text_field
id, 'pass').value = @pass
ie.button
name, 'login').click
puts '*** debug string here ***'
------------------------------------------------
When this code snip is executed, IE is opened and go to the login page,
then the fields are filled. But the login button is not clicked. IE
still displays the login page without being submitted.
In the console, '*** debug string here ***' is printed directly. No
error occurs.
The same code in Google search page works fine.
------------------------------------------------
ie.text_field
name, 'q').value = 'watir'
ie.button
name, 'btnG').click
------------------------------------------------
Does anyone encountered the same situation like me or anyone could give
me any advice?
Regards,
Alex
I tried to use Watir & ruby & IE9 to automate Facebook login but seems
the "Login" button is protected by Facebook.
Below is my code snip:
------------------------------------------------
ie = IE.new
ie.goto('http://www.facebook.com/login.php')
ie.text_field
ie.text_field
ie.button
puts '*** debug string here ***'
------------------------------------------------
When this code snip is executed, IE is opened and go to the login page,
then the fields are filled. But the login button is not clicked. IE
still displays the login page without being submitted.
In the console, '*** debug string here ***' is printed directly. No
error occurs.
The same code in Google search page works fine.
------------------------------------------------
ie.text_field
ie.button
------------------------------------------------
Does anyone encountered the same situation like me or anyone could give
me any advice?
Regards,
Alex