File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1- using NUnit . Framework ;
2- using OpenQA . Selenium ;
1+ using OpenQA . Selenium ;
32using OpenQA . Selenium . Chrome ;
43using OpenQA . Selenium . Firefox ;
54using OpenQA . Selenium . Remote ;
@@ -72,7 +71,7 @@ public void Init()
7271 public void GoogleTest ( )
7372 {
7473 driver . Navigate ( ) . GoToUrl ( "http://www.google.com" ) ;
75- StringAssert . Contains ( "Google" , driver . Title ) ;
74+ Assert . That ( driver . Title , Is . EqualTo ( "Google" ) ) ;
7675 IWebElement query = driver . FindElement ( By . Name ( "q" ) ) ;
7776 query . SendKeys ( "TestingBot" ) ;
7877 query . Submit ( ) ;
Original file line number Diff line number Diff line change 1- using NUnit . Framework ;
2- using OpenQA . Selenium ;
1+ using OpenQA . Selenium ;
32using OpenQA . Selenium . Chrome ;
43using OpenQA . Selenium . Firefox ;
54using OpenQA . Selenium . Remote ;
@@ -70,7 +69,7 @@ public void Init()
7069 public void GoogleTest ( )
7170 {
7271 driver . Navigate ( ) . GoToUrl ( "http://www.google.com" ) ;
73- StringAssert . Contains ( "Google" , driver . Title ) ;
72+ Assert . That ( driver . Title , Is . EqualTo ( "Google" ) ) ;
7473 IWebElement query = driver . FindElement ( By . Name ( "q" ) ) ;
7574 query . SendKeys ( "TestingBot" ) ;
7675 query . Submit ( ) ;
You can’t perform that action at this time.
0 commit comments