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
import json | |
import os | |
import urllib | |
import subprocess | |
import pytest | |
from playwright.sync_api import sync_playwright | |
from dotenv import load_dotenv | |
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="Lambda tests Mobile automation test suite"> | |
<test name="Proverbial app - iOS Mobile Automation tests for popup"> | |
<parameter name="buildName" value="IOS Build"/> | |
<parameter name="testName" value="Find My App tests"/> | |
<parameter name="app" value="lt://APP10160531401673434634013700"/> | |
<parameter name="platformName" value="IOS"/> | |
<parameter name="version" value="13"/> | |
<parameter name="device" value="iPhone 8 Plus"/> |
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"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>io.github.mfaisalkhatri</groupId> | |
<artifactId>react-native-app-mobile-testing</artifactId> | |
<version>1.0-SNAPSHOT</version> |
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
#It will be skipped when adding an addopts option in pytest.ini file -k "not 06" | |
def test_06(browser): | |
browser.get("https://www.lambdatest.com/selenium-playground/simple-form-demo") | |
assert browser.title == "Selenium Grid Online | Run Selenium Test On Cloud" |
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
[pytest] | |
addopts = -k "not 06" |
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 pages.htmlelements; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.JavascriptExecutor; | |
import org.openqa.selenium.SearchContext; | |
import org.openqa.selenium.WebElement; | |
import static setup.DriverManager.getDriver; | |
public class HomePage { |
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 ShadowRootTests extends BaseTest { | |
@BeforeClass | |
public void navigateToWebsite() { | |
getDriver().get("https://www.htmlelements.com/demos/menu/shadow-dom/index.htm"); | |
} | |
@Test | |
public void testFileMenuShadowRootElement() { | |
final HomePage homePage = new HomePage(); |