hello everybody,
please, when I run the test, it always stops at the “scroll element into view” step. it gives me the error “ELEMENT with locator not found”. although my xpath is correct. I check it on the amazon page.
Hi Ahmed,
Are you 100% sure that url didn’t change?
I would suggest you try an xpath like this
//a[text()='Suivant']
or
//a[contains(text(), 'Suivant')]
Not only will this survive the url being dynamic, but it should hopefully be more obvious to another tester following you to maintain the test as to what the test is trying to do.
Dave.
1 Like
ok dave . thanks for your proposition