Question: To understand the basic selenium operations like invoking the driver, identifying the web element by name and getting the specific attribute of the web element.


To understand the basic selenium operations like invoking the driver, identifying the web element by name and getting the specific attribute of the web element.

Description:

Shopify is a popular online shopping site. The UX team is very particular about the user experience. They don't want to add too many labels at the same time they want to make sure that the user experience is not compromised. Hence they suggested to show the meaningful placeholder text for all text fields. You have been asked to write selenium script to check the placeholder value of the Firstname textbox.

URL:http://webapps.tekstac.com/Shopify/

Test Procedure:

1. Use the template code.

2. Don't make any changes in DriverSetup file.

3. Only in the suggested section add the code to.

4. Invoke the driver using getWebDriver() method defined in DriverSetup()

5. Identify the Firstname textbox using By.name locator, get the placeholder value of the same.

6. Store the placeholder value in the static variable fName.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres the Selenium script to check the placeholder value of the Firstname textbox on the given Shopi... View full answer

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 Programming Questions!