public static void register_User() { rpo.fname_enterText("firstName", "Shiva"); rpo.lname_enterText("lastName", "Shankar"); rpo.phone_enterText("phone", "9999999999"); rpo.email_enterText("userName", "*****@*****.**"); rpo.address1_enterText("address1", "block-3"); rpo.address2_enterText("address2", "Malleswaram"); rpo.city_enterText("city", "Bangalore"); rpo.state_enterText("state", "Karnataka"); rpo.phone_enterText("postalCode", "560001"); rpo.username_enterText("email", "Shiva123"); rpo.password_enterText("password", "Shiva1234"); rpo.confirmpassword_enterText("confirmPassword", "Shiva1234"); rpo.submit_click("register"); }
public static void register_User() { String ExpectedTitle = "Register: Mercury Tours"; String ActualTitle = driver.Title; Assert.AreEqual(ExpectedTitle, ActualTitle); rpo.fname_enterText("firstName", "Shiva"); rpo.lname_enterText("lastName", "Shankar"); rpo.phone_enterText("phone", "9999999999"); rpo.email_enterText("userName", "*****@*****.**"); rpo.address1_enterText("address1", "block-3"); rpo.address2_enterText("address2", "Malleswaram"); rpo.city_enterText("city", "Bangalore"); rpo.state_enterText("state", "Karnataka"); rpo.phone_enterText("postalCode", "560001"); rpo.username_enterText("email", "Shiva123"); rpo.password_enterText("password", "Shiva1234"); rpo.confirmpassword_enterText("confirmPassword", "Shiva1234"); rpo.submit_click("register"); }