コード例 #1
0
 public void WhenUserClickOnCloseButton()
 {
     try
     {
         Synchronization.VisibleElement(SelectBrowser.driver, By.XPath("//button[@class='btn btn-default pull-right']"));
         ActivityHomePage.CloseButton(SelectBrowser.driver).Click();
         test.Log(Status.Pass, "User Clicks on the close button");
         // Thread.Sleep(10000);
     }
     catch (Exception ex)
     {
         Console.WriteLine("Exception==>" + ex);
         ScreenshotPage.TakesScreenshotWithDate(@"Screesnhot", System.Drawing.Imaging.ImageFormat.Png);
     }
 }