I am new at selenium Java. Using Facebook example, I tried to write button click function using eclipse. For "Create New Account" button I tried using find element by id but it was not working because id is not static. Then I tried find element by class but an error occur that compound class cannot be used.
I have tried XPath but it is also not working. What web element can I use to locate this button?

>Solution :
You can use this CSS Selector:
a[data-testid="open-registration-form-button"]
or this XPath
//a[@data-testid="open-registration-form-button"]