Skip to content

Commit

Permalink
Merge pull request #93 from Perfecto-Quantum/1.3.0.b2_release
Browse files Browse the repository at this point in the history
1.3.0.b2 release
  • Loading branch information
perforce-prasant authored Dec 21, 2022
2 parents 43b2df3 + 6d73891 commit ab02aad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.quantum</groupId>
<artifactId>quantum-support</artifactId>
<version>1.30.0</version>
<version>1.30.1</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
13 changes: 11 additions & 2 deletions src/main/java/com/qmetry/qaf/automation/ui/UiDriverFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -397,13 +397,22 @@ private DesiredCapabilities getDesiredCapabilities() {
String driverCapKey = String.format(ApplicationProperties.DRIVER_CAPABILITY_PREFIX_FORMAT.key, browserName);
config = ConfigurationManager.getBundle().subset(driverCapKey);



// ======== Patch for Appium 2.0 and Selenium 4 vendor specific prefix ========

QuantumPatch quantumPatch = new QuantumPatch();

Platform platform = desiredCapabilities.getPlatformName();
String platform = (String)capabilities.get("platformName");

platform = (null == platform? null:platform.toUpperCase());

if(null == platform) {
platform = (String)config.getProperty("driverClass");
platform = (null == platform? "WEB-PLATFORM":platform);
}

if(Platform.ANDROID.equals(platform) || Platform.IOS.equals(platform)) {
if(platform.contains("ANDROID") || platform.contains("IOS")) {
quantumPatch.capabilitiesPatchAppium2(config, capabilities);
}else {
quantumPatch.capabilitiesPatchSelenium4(config, capabilities);
Expand Down

0 comments on commit ab02aad

Please sign in to comment.