01
What is the difference between waitForSelector and expect with locator?
Show answer
waitForSelector is a lower-level wait; locator assertions are preferred as they retry and are more readable.
226 medium questions with answers. Applied questions that check whether you can use the concepts on real work.
Anyone with some hands-on practice: most real interview time is spent on medium questions like these.
Answer each question aloud before opening the answer, mark it as solved only when your answer matches the key idea, and save misses to Last-Minute Revision.