File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
src/main/java/net/itarray/automotion/internal Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change 22
33import io .appium .java_client .AppiumDriver ;
44import io .appium .java_client .android .AndroidDriver ;
5+ import io .appium .java_client .ios .IOSDriver ;
56import org .openqa .selenium .*;
67import org .openqa .selenium .remote .RemoteWebDriver ;
78
@@ -39,24 +40,15 @@ public WebDriver getDriver() {
3940 }
4041
4142 public boolean isAppiumAndroidContext () {
42- if ((driver instanceof AndroidDriver )) {
43- return true ;
44- }
45- return false ;
43+ return driver instanceof AndroidDriver ;
4644 }
4745
4846 public boolean isAppiumIOSContext () {
49- if ((driver instanceof AndroidDriver )) {
50- return true ;
51- }
52- return false ;
47+ return driver instanceof IOSDriver ;
5348 }
5449
5550 public boolean isAppiumContext () {
56- if ((driver instanceof AppiumDriver )) {
57- return true ;
58- }
59- return false ;
51+ return driver instanceof AppiumDriver ;
6052 }
6153
6254 public boolean isAppiumWebContext () {
You can’t perform that action at this time.
0 commit comments