Question: I am using Selenium Webdriver and Eclipse to run test cases. What is the code I am missing to perform these steps? ___________________________________________ Test Case

I am using Selenium Webdriver and Eclipse to run test cases. What is the code I am missing to perform these steps?

___________________________________________

Test Case Scenario 1: using Chrome driver find the following elements on HULogin by XPath

Username textbox using the sendKeys() method provide your Username.

Password texbox using the sendKeys() method leave this field empty

Login button use the click() method

Change Password button

Forgot Password? button

Dont close the site automatically

Run your application. The HULogin website will open in Chrome (you would get Missing Password message should display on the screen...) Take a screenshot of the results

Test Case Scenario 2: Using Chrome driver find the following elements on HULogin by XPath

Username textbox using the sendKeys() method provide your valid Username.

Password texbox using the sendKeys() method leave this field empty

Change Password button - use the click() method

Dont close the site automatically

Run your application. The HULogin website will open in Chrome (Set Password window will open up.) Take a screenshot of the results

Test Case Scenario 3: using Chrome driver find the following elements on HULogin by XPath

Username textbox using the sendKeys() method provide your Username.

Password texbox using the sendKeys() method leave this field empty

Forgot Password? Button - use the click() method

Dont close the site automatically

Run your application. The HULogin website will open in Chrome (End-User Self Service Screen will open up.) Take a screenshot of the results

____________________________________________

My current code, which works to open and close the herzing page:

import org.openqa.selenium.WebDriver;

import org.openqa.selenium.chrome.ChromeDriver;

public class IS338SeleniumTest {

public static void main(String[] args) {

System.setProperty("webdriver.chrome.driver", "C:\\Users\\xUnlaced\\Downloads\\Chromedriver\\chromedriver.exe");

WebDriver driver = new ChromeDriver(); driver.get("http://login.herzing.edu"); driver.quit();

} }

The xpaths I have found so far that I am not sure how to incorporate into my code:

Test Case 1:

Herzing Username: //*[@id="frmLogin_UserName"] Herzing Password: //*[@id="frmLogin_Password"] Login button: //*[@id="btnLogin"] Change password: //*[@id="btnSetPW"] Forgot password: //*[@id="btnSelfServe"]

What am I missing in order to complete these steps?

Thank you for your help, will give a thumbs up!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!