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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> | |
| <suite name="TestSuite" parallel="tests"> | |
| <test name="ChromeBrowserTest"> | |
| <parameter name="browser" value="Chrome"/> | |
| <classes> | |
| <class name="com.infa.dqcloud.testcases.profiling.LoginTest"> | |
| </class> | |
| </classes> | |
| </test> |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> | |
| <suite name="LambdaTest ECommerce Tests"> | |
| <test name="ECommerce Website Login tests on LambdaTest Cloud Grid on Chrome"> | |
| <parameter name="browser" value="chrome_cloud"/> | |
| <classes> | |
| <class name="io.github.mfaisalkhatri.LambdaTestECommerceTests"> | |
| <methods> | |
| <include name="testLogin"/> | |
| </methods> |
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
| public class BaseTest { | |
| protected DriverManager driverManager; | |
| @BeforeClass | |
| @Parameters("browser") | |
| public void setup(final String browser) { | |
| this.driverManager = new DriverManager(); | |
| this.driverManager.createDriver(Browsers.valueOf(browser.toUpperCase())); | |
| } |
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
| public class MyAccountPage { | |
| private final WebDriver driver; | |
| public MyAccountPage(final WebDriver driver) { | |
| this.driver = driver; | |
| } |
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 test; | |
| import org.openqa.selenium.*; | |
| import org.testng.annotations.Test; | |
| public class ScrollToSpecificElement extends BaseTest | |
| { |
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 test; | |
| import org.testng.annotations.Test; | |
| public class ScrollToTheTopOfPage extends BaseTest | |
| { | |
| public void navigateAndScrollToBottom() | |
| { |
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 test; | |
| import org.testng.annotations.Test; | |
| public class InfiniteScroll extends BaseTest | |
| { | |
| @Test | |
| public void testInfiniteScroll() |
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 test; | |
| import org.openqa.selenium.By; | |
| import org.openqa.selenium.Keys; | |
| import org.openqa.selenium.WebElement; | |
| import org.testng.annotations.Test; | |
| public class ScrollOnAPage extends BaseTest{ |
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 test; | |
| import org.openqa.selenium.Dimension; | |
| import org.testng.annotations.Test; | |
| public class VerticalAndHorizontalScroll extends BaseTest{ | |
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 test; | |
| import org.openqa.selenium.Dimension; | |
| import org.testng.annotations.Test; | |
| public class ScrollToHorizontalRight extends BaseTest{ | |