Ejemplo n.º 1
0
 public void GivenIHaveEnterdAllValues()
 {
     Common1.d = new ChromeDriver();
     Common1.d.Manage().Window.Maximize();
     Common1.d.Manage().Timeouts().ImplicitWait = TimeSpan.FromMinutes(1);
     Common1.d.Navigate().GoToUrl(" http://new-keys.azurewebsites.net/Account/Login ");
     Common1.textbox(Common1.d, "UserName", "*****@*****.**", "Id");
     Common1.textbox(Common1.d, "Password", "ntmv2682", "Id");
     Common1.button(Common1.d, "//*[@id='sign_in']/div[1]/div[4]/button", "Xpath");
     Common1.button(Common1.d, "body > div.ui.fixed.top.text.menu > div > div.right.menu > div.ui.dropdown.item.active.visible", "CssSelector");
     //Actions a = new Actions(Common1.d);
     //a.MoveToElement(Common1.d.FindElement(By.ClassName("ui dropdown item active visible")).Click().
     Thread.Sleep(3000);
 }
Ejemplo n.º 2
0
 public void test1()
 {
     Common1.d.Navigate().GoToUrl("http://qaautomation.co.nz/deliveryform/");
     Common1.textbox(Common1.d, "hugeit_preview_textbox_25", "lavanya", "Id");
     Common1.textbox(Common1.d, "hugeit_preview_textbox_24", "vemula", "Id");
     Common1.textbox(Common1.d, "hugeit_preview_textbox_26", "*****@*****.**", "Id");
     Common1.textbox(Common1.d, "hugeit_preview_textbox_23", "123456", "Id");
     Common1.radioButton(Common1.d, "//*[@id='hugeit_preview_textbox_30']/li[2]/label/div/i[2]", "XPath");
     Common1.dd(Common1.d, "hugeit_preview_textbox_28", "New York", "Id");
     Common1.textbox(Common1.d, "hugeit_preview_textbox_29", "asffggh", "Id");
     Common1.textbox(Common1.d, "hugeit_preview_textbox_22", "asffggh", "Id");
     Common1.textbox(Common1.d, "hugeit_preview_textbox_27", "asffggh", "Id");
     Common1.textbox(Common1.d, "hugeit_preview_textbox_31", "1234", "Id");
     Common1.button(Common1.d, "submit", "ClassName");
     Thread.Sleep(4000);
 }