Darren Tran
Darren Tran

Reputation: 1

How to locate the XPATH of the Continue button on LinkedIn?

I right clicked the button, selected "Inspect" command and copied and used both XPATH and full XPATH. Neither of them worked for any of the commands below.

Can someone please explain? Thank you.

Upvotes: 0

Views: 589

Answers (3)

Anno Developing
Anno Developing

Reputation: 26

I would recommend using the Selector / CSS Selector. In the code just change

By.XPATH

to:

By.CSS_SELECTOR

and instead of copying the XPATH copy the Selector or in some cases CSS Selector.

Upvotes: 0

Conal Tuohy
Conal Tuohy

Reputation: 3213

You could try searching the entire page for a button element with the continue-btn class:

//button[@class='continue-btn']

Upvotes: 0

K. B.
K. B.

Reputation: 3690

Without the HTML, I cannot give a definitive answer. Looks like the first id may be dynamic and could change. As for the second one, the full XPaths are brittle and I do not use them at all. There could be an iframe that you should switch to first.

Upvotes: 0

Related Questions