Skip to content

Instantly share code, notes, and snippets.

View krishtoautomate's full-sized avatar

krishtoautomate krishtoautomate

View GitHub Profile
@biwkf
biwkf / gist:b0ebb9940e6341ed5e588f148b4381a8
Created February 27, 2019 15:10
Automating deeplinks with Appium on iOS real device
/* On a real device it is not possible to simply call driver.get("url"), doing so will open SIRI and query with "url" resulting in a search.
Instead we can take advantage of Safari's launch parameters and pass deep link URL as argument.
Below is an example: */
String deepLinkURL = "deeplink://";
driver.executeScript("mobile: terminateApp", ImmutableMap.of("bundleId", "com.apple.mobilesafari"));
List args = new ArrayList();
@serhatbolsu
serhatbolsu / gist:40ca473991232c578173
Created July 9, 2015 08:13
Grid Capability Matcher for Appium deviceName
package qualify.appium;
import org.openqa.grid.internal.utils.DefaultCapabilityMatcher;
import java.util.Map;
/**
* This class is for nodes to determine Capability Matching using deviceName.
* For Capability Matcher change:
* - java -jar QualifyMatcher.jar -role hub -capabilityMatcher qualify.appium.QualifyMatcher