[TestFixture]
public class Search : SeleniumBase
{
  [Test]
  public void Search()
  {
      try
      {
          string path = "Search";
         CaptureScreen(path, "HomePage.jpg");
         selenium.Click("link=MAP SEARCH");
         selenium.WaitForFrameToLoad(SeleniumConfig.GetHostURL + @"/Search", "100000");

         //select iframe
         selenium.SelectFrame("//iframe[@src='/Search']");
         CaptureScreen(path, "Map.jpg");

         selenium.Type("id=key", "London");
         selenium.Click("id=searchPoint");
         Thread.Sleep(5000);

         //back to main window
         selenium.SelectWindow("null");
         Thread.Sleep(5000);
     }
     catch (Exception ex)
     {
         verificationErrors.Append(ex.Message);
         throw ex;
     }
 }

相关文章:

  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-25
  • 2021-10-12
  • 2022-02-18
  • 2022-12-23
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案