Added extension methods for handling webfields
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
using EATestFramework.Driver;
|
||||
using EATestFramework.Extensions;
|
||||
using EATestProject.Model;
|
||||
using OpenQA.Selenium;
|
||||
using OpenQA.Selenium.Support.UI;
|
||||
@ -26,8 +27,7 @@ namespace EATestProject.Pages
|
||||
txtName.SendKeys(product.Name);
|
||||
txtDescription.SendKeys(product.Description);
|
||||
txtPrice.SendKeys(product.Price.ToString());
|
||||
var select = new SelectElement(ddlProductType);
|
||||
select.SelectByText(product.ProductType.ToString());
|
||||
ddlProductType.SelectDropDownByText(product.ProductType.ToString());
|
||||
btnCreate.Click();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user