'Unable to click "Sign Up" button for creating the Facebook account

*** Test Cases ***
SignUp
open browser    ${url}     ${browser}
maximize browser window
set selenium speed    2s
Click Element    xpath://a[text()="Create New Account"]
input text    name:firstname     sneha
input password    id:password_step_input    Sneham@8989
select from list by label    birthday_day     23
select radio button    sex      1
click button      xpath://a[text()="Sign Up"]

I Have tried the above code to Sign Up Facebook account. Tried with different scenarios like with ID, Name, Xpath and Text; but none of those able to identify the element. Please help with the above issue



Solution 1:[1]

The "Sign Up" is a button.

What about click button xpath://button[text()="Sign Up"] ?

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 buzzbuzz