Created
July 18, 2024 07:23
-
-
Save SarahElson/b87d8fa85a6281b7df8f88a409178295 to your computer and use it in GitHub Desktop.
What Is the Single Responsibility Principle (SRP)?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.lambdatest.srp; | |
import com.lambdatest.base.BaseTest; | |
import com.lambdatest.mainpagecomponents.LambdaTestHomePage; | |
import org.testng.annotations.BeforeTest; | |
import org.testng.annotations.Test; | |
public class TestClass extends BaseTest { | |
private LambdaTestHomePage lambdatestHomePage; | |
@BeforeTest | |
public void setupPages() { | |
this.lambdatestHomePage = new LambdaTestHomePage(driver); | |
} | |
@Test | |
public void Test1(){ | |
lambdatestHomePage.goTo(); | |
lambdatestHomePage.getNavigationBar().goToSearchField("Canon EOS 5D"); | |
lambdatestHomePage.getNavigationBar().clickOnSearchButton(); | |
} | |
@Test | |
public void Test2() throws InterruptedException { | |
lambdatestHomePage.goTo(); | |
lambdatestHomePage.getNavigationBar().MyAccountLink(); | |
lambdatestHomePage.myAccountPage().loginfunctionality(); | |
//search the product | |
lambdatestHomePage.getNavigationBar().goToSearchField("iPod Nano"); | |
lambdatestHomePage.getNavigationBar().clickOnSearchButton(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment