コード例 #1
0
 public void WhenISetTheRegionTo(string region)
 {
     var officeOVerviewPage = new OfficeOverviewPage();
     officeOVerviewPage.SelectRegion(region);
 }
コード例 #2
0
 public void ThenTheDistanceIsKm(string distance)
 {
     var officeOVerviewPage = new OfficeOverviewPage();
     Assert.IsTrue(FindElement(officeOVerviewPage.AddressesLocator).Text.Contains(distance));
 }
コード例 #3
0
 public void ThenIShouldSeeOfficeOnTheTopOfTheList(string office)
 {
     var officeOVerviewPage = new OfficeOverviewPage();
     Assert.IsTrue(FindElement(officeOVerviewPage.AddressesLocator).Text.ToLower().Contains(office.ToLower()));
 }
コード例 #4
0
 public void WhenISearchForOfficesNearTo(string location)
 {
     var officeOVerviewPage = new OfficeOverviewPage();
     officeOVerviewPage.FindNearestOffice(location);
 }
コード例 #5
0
 public void ThenISeeAListOfAddressesUnderTheMap()
 {
     var officeOVerviewPage = new OfficeOverviewPage();
     Assert.IsTrue(FindElement(officeOVerviewPage.AddressesLocator).Displayed);
 }
コード例 #6
0
 public void ThenISeeAGoogleMapOnThePage()
 {
     var officeOVerviewPage = new OfficeOverviewPage();
     Assert.IsTrue(FindElement(officeOVerviewPage.MapLocator).Displayed);
 }