public void SampleTest() { string good = "HP ProBook"; char[] ch = { '₴', ' ' }; Go.To <Page1>() .Search.Set(good) .SearchButton.Click(); string priceFirst = Go.To <Page1>().Price.Get().Trim(ch); Go.To <Page1>() .Good.Click(); string priceSecond = Go.To <Page2>().Price.Get().Trim(ch); Go.ToUrl(String.Format("https://rozetka.com.ua/search/?text={0}", good)); string priceThird = Go.To <Page1>().Price.Get().Trim(ch); Assert.AreEqual(priceFirst, priceSecond, "The results doesn't contains the specified text."); Assert.AreEqual(priceFirst, priceThird, "The results doesn't contains the specified text."); }
public void SampleTest() { //Go.To<OrdinaryPage>() // .PageTitle.Should.Contain("Atata"); string product = "apple macbook 13"; char[] ch = { '₴', ' ' }; Go.To <Page1>() .Search.Set(product) .SearchButton.Click(); string priceFirst = Go.To <Page1>().Price.Get().Trim(ch); Go.To <Page1>() .Good.Click(); string priceSecond = Go.To <Page2>().Price.Get().Trim(ch); Go.ToUrl(String.Format("https://rozetka.com.ua/search/?text={0}", product)); string priceThird = Go.To <Page1>().Price.Get().Trim(ch); Assert.AreEqual(priceFirst, priceSecond); Assert.AreEqual(priceFirst, priceThird); }
public void go_to_joey_blog() { Go.ToUrl("https://dotblogs.com.tw/hatelove/1"); }