F
F
Fenix9572017-05-30 03:15:57
Software testing
Fenix957, 2017-05-30 03:15:57

How to open the site and wait until the user manually logs in to the site and then continue testing selenium?

In general, I launch chrome through webdriver . The authorization page opens. How to wait indefinitely until the user logs in to the site. it can be 30 seconds or 3 hours. and after authorization run tests.
And the second question is how to find out that the user has logged in during the test and pause the test?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Fenix957, 2017-05-30
@Fenix957

solved
bool auth = false;
while (auth == false) auth = driver1.WaitUntilExists(By.LinkText("Profile"), 10);

T
Talik, 2017-05-31
@Talik0507

Attention question. Why wait for user action in autotests?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question