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.mobilesla.testapp; | |
import android.content.Context; | |
import androidx.test.platform.app.InstrumentationRegistry; | |
import androidx.test.ext.junit.runners.AndroidJUnit4; | |
import androidx.test.uiautomator.UiDevice; | |
import androidx.test.uiautomator.UiObject; | |
import androidx.test.uiautomator.UiObjectNotFoundException; | |
import androidx.test.uiautomator.UiSelector; |
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
require 'rubygems' | |
require 'appium_lib' | |
require 'selenium-webdriver' | |
caps = { | |
"platformName" => "ios", | |
"platformVersion" => "14.0", | |
"deviceName" => "iPhone 11", | |
#"app" => "bs://db06185390824f25c0f7cea51b3379a4e62fd0da", | |
"automationName"=> "flutter", |
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 org.openqa.selenium.*; | |
import org.openqa.selenium.remote.DesiredCapabilities; | |
import org.openqa.selenium.remote.RemoteWebDriver; | |
import org.openqa.selenium.support.ui.WebDriverWait; | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
import java.util.HashMap; | |
public class AmazonNetworkLogs { |
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 org.apache.commons.io.FileUtils; | |
import org.openqa.selenium.*; | |
import org.openqa.selenium.remote.DesiredCapabilities; | |
import org.openqa.selenium.remote.RemoteWebDriver; | |
import java.io.File; | |
import java.net.URL; | |
import java.util.ArrayList; |
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 java.net.URL; | |
import java.net.MalformedURLException; | |
import org.openqa.selenium.remote.DesiredCapabilities; | |
import io.appium.java_client.ios.IOSDriver; | |
import io.appium.java_client.ios.IOSElement; | |
public class UseFindBy { | |
static IOSDriver<IOSElement> driver; | |
static FindBy findBy; |
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
driver.get("https://demoqa.com/browser-windows"); | |
// Open new child window within the main window | |
driver.findElement(By.id("tabButton")).click(); | |
//Get handles of the windows | |
String mainWindowHandle = driver.getWindowHandle(); | |
System.out.println("main" + mainWindowHandle); | |
Set<String> allWindowHandles = driver.getWindowHandles(); | |
Iterator<String> iterator = allWindowHandles.iterator(); |
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 io.appium.java_client.ios.IOSDriver; | |
import org.openqa.selenium.*; | |
import org.openqa.selenium.interactions.Actions; | |
import org.openqa.selenium.interactions.touch.TouchActions; | |
import org.openqa.selenium.remote.DesiredCapabilities; | |
import org.openqa.selenium.remote.RemoteWebDriver; | |
import org.openqa.selenium.support.ui.ExpectedConditions; | |
import org.openqa.selenium.support.ui.WebDriverWait; |
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 io.appium.java_client.MobileBy; | |
import io.appium.java_client.ios.IOSDriver; | |
import io.appium.java_client.ios.IOSElement; | |
import org.openqa.selenium.remote.DesiredCapabilities; | |
import org.openqa.selenium.support.ui.ExpectedConditions; | |
import org.openqa.selenium.support.ui.WebDriverWait; | |
import java.net.MalformedURLException; | |
import java.net.URL; |
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
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
from selenium.webdriver.chrome.options import Options | |
import time | |
desired_cap = { | |
'browser_version': 'latest', | |
'name': "camera_spoof", | |
'build': 'Camera Stream', |
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 org.openqa.selenium.By; | |
import org.openqa.selenium.JavascriptExecutor; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.WebElement; | |
import org.openqa.selenium.chrome.ChromeDriver; | |
import org.openqa.selenium.interactions.Actions; | |
import org.openqa.selenium.remote.DesiredCapabilities; | |
import org.openqa.selenium.remote.RemoteWebDriver; |
NewerOlder