Why is the copied XPATH not working for selenium?

26 Views Asked by At

I'm trying to automate a game and I need to get the boxed element using selenium. I'm using python 3.11 and MacOS with M2 chip. I'm also using Chrome Version 123.0.6312.59 Link to picture of elements tab in inspect menu (They took down my question because of a similarity to a question involving Firefox, but this is different because it's Chrome).

I copied the XPATH and it gave me this:

"/html/body/div[2]/div[2]/div[2]/div[2]/div".

Is this correct / any other ideas on how to access this element?

0

There are 0 best solutions below