Commit 3b4474b4 authored by Simran Kumari's avatar Simran Kumari
Browse files

Update src/test/java/Log4j/Login.java

parent 751ec318
......@@ -30,12 +30,12 @@ public class Login {
*/
@BeforeSuite(alwaysRun = true)
public WebDriver startBrowser() throws MalformedURLException {
//TODO: call the configure method of BasicConfigurator class
//TODO1: call the configure method of BasicConfigurator class
//TODO2: Define log4j properties file location
//TODO: write log for driver object creation
//TODO1: write log for driver object creation
// Code to Launch Browser using Zalenium in Crio workspace
......@@ -57,7 +57,7 @@ public class Login {
* use this method to open the url of an application
*/
public void openURL(String browserURL) {
// TODO: Write log for opening given url
// TODO1: Write log for opening given url
// open the URL
driver.get(browserURL);
......@@ -69,7 +69,7 @@ public class Login {
*/
public void clickOnLogin() {
WebElement btnLogin = driver.findElement(By.xpath("//button[text()='Login']"));
// TODO: Log clicking on Login button web element.
// TODO1: Log clicking on Login button web element.
// Click on Login button
btnLogin.click();
......@@ -81,7 +81,7 @@ public class Login {
public void enterUserName() {
WebElement userName = driver.findElement(By.id("username"));
// TODO:Log user name and the userName text box web element
// TODO1:Log user name and the userName text box web element
// Enter userName
userName.sendKeys("abc");
......@@ -92,7 +92,7 @@ public class Login {
*/
public void enterPassword() {
WebElement password = driver.findElement(By.id("password"));
// TODO: Log password and the password text box web element
// TODO1: Log password and the password text box web element
// Enter password
password.sendKeys("abc123");
......@@ -104,7 +104,7 @@ public class Login {
*/
public void clickOnLoginButton() {
WebElement loginButton = driver.findElement(By.xpath("//button[text()='Login to QKart']"));
// TODO: Log clicking on LOGIN TO QKART and it's web element
// TODO1: Log clicking on LOGIN TO QKART and it's web element
// Click on "LOGIN TO QKART" button
loginButton.click();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment