Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
cenbek
Posts : 2
Join date : 2012-12-11

give error if page is not exist Empty give error if page is not exist

Tue Dec 11, 2012 4:44 am
Hi.
i use asp.net mvc, and i try unit tests and behviour driven development tests.
i want to give error if a page doesn't exist.
For example, i use this code:
selenium.Navigate().GoToUrl(baseurl+"/Index");

i also deleted Index view. That is, no view/page at the "baseurl+"/Index" route.
In fact, there is no ındex page, bu my test gives success.
Thanks in advance.

avatar
tarun3kumar
Master
Master
Posts : 186
Join date : 2012-02-14
http://seleniumtests.com

give error if page is not exist Empty Re: give error if page is not exist

Wed Dec 12, 2012 1:14 am
Can you assert on the basis of content of page
avatar
cenbek
Posts : 2
Join date : 2012-12-11

give error if page is not exist Empty Re: give error if page is not exist

Wed Dec 12, 2012 4:02 pm
i can't understand what you said. Wht is the the basis of content of page.
i can't understand this?
Thanks.
avatar
tarun3kumar
Master
Master
Posts : 186
Join date : 2012-02-14
http://seleniumtests.com

give error if page is not exist Empty Re: give error if page is not exist

Sun Dec 16, 2012 1:57 am
Assert the absence of certain element /text on page
Sponsored content

give error if page is not exist Empty Re: give error if page is not exist

Back to top
Permissions in this forum:
You cannot reply to topics in this forum