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 "appium_lib" | |
def desired_capabilities | |
{ | |
caps: { | |
# Required: Must be present to authenticate | |
"testobject_api_key": 'SOMETHING', | |
platformName: 'Android', | |
deviceName: 'LG Nexus 5X', |
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
source "https://www.rubygems.org" | |
gem "selenium-webdriver" | |
gem "net-http-persistent" |
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
# Allow browser creation to be turned off when calling the 'browser' method. | |
# This lets us check if a browser has been created, without creating on in the | |
# process. Which is less gross then `instance_variable_get` IMO. | |
# | |
# Default of `true` means standard behavior still exists | |
module SauceBrowserCheck | |
def browser allow_creation: true | |
if (@browser || allow_creation) | |
super() | |
else |
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
# REMOVE ME | |
# This is a hacky monkeypatch for diagnosing | |
# https://saucelabs.zendesk.com/agent/tickets/35719 | |
# It isn't needed once that issue is resolved | |
# And is kinda gross. Dylan from Sauce is sorry for what he's done. | |
module RackSessionAccess | |
module Capybara | |
alias_method :original_set_rack_session, :set_rack_session |
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
##Blank Selenium Test | |
require "selenium/webdriver" | |
require 'selenium/webdriver/remote/http/persistent' | |
def un | |
ENV["SAUCE_USERNAME"] | |
end | |
def ak |
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
puts `("platform=\"#{platform}\" browserName=\"#{browser}\" version=\"#{version}\" JUNIT_DIR=\"#{junit_dir}\" parallel_cucumber features -n 20")` |
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
#!/bin/bash | |
defaults write com.apple.Safari WarnAboutFraudulentWebsites false |
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
source "http://www.rubygems.org" | |
gem "selenium-webdriver" |
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
source "https://www.rubygems.org" | |
gem "selenium-webdriver" |
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
#!/bin/bash | |
cd $ANDROID_HOME/platform-tools | |
echo `adb devices` | |
curl -O http://i.imgur.com/0H5GsQV.png | |
adb push 0H5GsQV.png /sdcard/Download | |
echo $ANDROID_HOME |