Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

Heres the Selenium script to check the placeholder value of the Firstname textbox on the given Shopi... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Smith and Roberson Business Law

Authors: Richard A. Mann, Barry S. Roberts

15th Edition

1285141903, 1285141903, 9781285141909, 978-0538473637

More Books

Students also viewed these Programming questions