This file contains 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
exports.config={ | |
helpers: { | |
WebDriverIO: { | |
url: process.env.BASE_URL, | |
user: "<USERNAME>", | |
key: "<ACCESS_KEY>", | |
desiredCapabilities: { | |
project: "Sample Project", | |
build: "CodeceptJS", | |
"browserstack.local" : true, |
This file contains 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
/*This will need the following Dependencies | |
<dependency> | |
<groupId>com.browserstack</groupId> | |
<artifactId>browserstack-local-java</artifactId> | |
<version>1.0.0</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>net.lightbody.bmp</groupId> | |
<artifactId>browsermob-core</artifactId> |
This file contains 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
/* | |
* Clone https://github.com/browserstack/selenide-browserstack | |
* Configure gradle globally OR locally in the project directory | |
* Use 'gradle init' | |
* Modify the build.gradle file inline with the below example | |
*/ | |
apply plugin: 'java' | |
apply plugin: 'maven' |
This file contains 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
#Replace username and access_key with your BrowserStack username and key | |
from selenium import webdriver | |
desired_cap = {'browser': 'Chrome', 'browser_version': '62', 'os': 'OS X', 'os_version': 'Sierra','browserstack.debug': 'true','build': 'Test Build v1.0'} | |
desired_cap['chromeOptions'] = { 'prefs' : {'profile': {"default_content_settings":{"multiple-automatic-downloads":1},"default_content_setting_values":{"automatic_downloads":1,"plugins":1},"content_settings":{"plugin_whitelist":{"adobe-flash-player":1},"exceptions":{"plugins":{"*,*":{"per_resource":{"adobe-flash-player":1}}}}},"password_manager_enabled":False,"gaia_info_picture_url":True}}} | |
driver = webdriver.Remote( | |
command_executor='http://<username>:<access_Key>@hub.browserstack.com:80/wd/hub', | |
desired_capabilities=desired_cap) |
This file contains 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
/* | |
Add the following dependency to your project OR download and add equivalent jar file to your project | |
<dependency> | |
<groupId>com.applitools</groupId> | |
<artifactId>eyes-selenium-java3</artifactId> | |
<version>RELEASE</version> | |
</dependency> | |
*/ | |
import org.openqa.selenium.By; |
This file contains 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('babel-register'); | |
require('./fast-selenium.js'); | |
const instances = 2; | |
const user = '<BrowserStack_Username>'; | |
const key = '<BrowserStack_Key>'; | |
const dt = new Date().getTime(); | |
const buildName = 'BrowserStack Parallel Tests: ' + dt; |
This file contains 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
# Pre-requisites: | |
# python3 -m pip install selenium | |
# python3 -m pip install urllib3 | |
import base64 | |
import http.client | |
import logging | |
import socket | |
import inspect | |
import string |
This file contains 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
Steps to run Appium locally on real iOS (Xcode 9.2 and iOS 11.2) | |
//Assuming you have homebrew and npm already setup & a valid Apple developer account | |
//these set of commands need to be run from terminal | |
- brew install libimobiledevice --HEAD # install from HEAD to get important updates | |
- brew install carthage | |
- npm install -g ios-deploy | |
- brew install ios-webkit-debug-proxy | |
- npm install -g appium |
This file contains 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
/* | |
Please add the following dependency in your pom.xml: | |
<dependency> | |
<groupId>com.browserstack</groupId> | |
<artifactId>browserstack-local-java</artifactId> | |
<version>1.0.2</version> | |
<scope>test</scope> | |
</dependency> | |
OR Download the jar from : https://mvnrepository.com/artifact/com.browserstack/browserstack-local-java/1.0.2 and add it to your project |
This file contains 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.WebDriver; | |
import org.openqa.selenium.remote.DesiredCapabilities; | |
import org.openqa.selenium.remote.RemoteWebDriver; | |
import java.net.URL; | |
import java.util.concurrent.TimeUnit; | |
public class nativeTapSample { | |
public static final String USERNAME = "<BrowserStack_Username>"; |
OlderNewer