QA-WBA-2

Modified on Mon, 19 Dec, 2022 at 4:42 PM

I am unable to locate xpath of an element!

Make sure you get the xpath from the browsers dev tools and try to build from there if dynamic xpaths are required. Later on, you can try to optimize the path by using xpath methods and conditions. Click here to learn more about xpath.

I am facing sync issues while running my tests!

We need to sync up our code with Application Under test (AUT) which means that time taken for the execution of our code should be aligned with the (AUT) interactions.

For that make sure you use Thread.sleep() and while converting Thread.sleep() to waits use appropriate waits - Implicit,Explicit, Fluent waits with appropriate conditions. Click here to learn more about waits 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article