menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

How to wri...
source image

Medium

2w

read

353

img
dot

Image Credit: Medium

How to write same test case for both Desktop and Mobile Web — CrossViewPort Automation

  • The approach of writing test cases for both Desktop and Mobile Web involves duplicating locators in different classes.
  • To overcome this, we can use abstract page classes to handle initialization and differentiate between Web and Mobile views.
  • Common locators and methods can be kept in the abstract page class, while specific ones are stored in their respective classes.
  • From the test case class, communication should happen only through the abstract class to ensure seamless execution.

Read Full Article

like

21 Likes

For uninterrupted reading, download the app