Checking the Specflow / Watin Page

We are just starting to write acceptance tests using specflow and watin. We try to smooth out some common practices as we move forward.

What is a good way to check if a user is on a particular page? For example, user x performs action y, they should be redirected to page z. What is the preferred way to test on page z? We tried things like checking URLs, page names, page title, etc.

They all work, but what is the most reliable?

+3
source share
2 answers

Here I would see two cases.

- , , . , Url - , .

-, (GoTo'd) , . URL- , - , , ( , "" ). , , . HomePageLoadedText = " ". , , .

0

, , , . " , ". - , , .

(, , ), , . URL- , , , , , , URL .

, , , , , , - .

0

Source: https://habr.com/ru/post/1793655/


All Articles