public void setEnvironment() { appiumDriver.manage().timeouts().implicitlyWait(40, TimeUnit.SECONDS); Location loc = new Location(37.795255, -122.403561, 39); appiumDriver.setLocation(loc); HomeScreen homeScreenObj = new HomeScreen(appiumDriver); homeScreenObj.handlePushNotificationAlert(); }
@Override public Location location() { return ((LocationContext) super.getWrappedDriver()).location(); }
@Override public void setLocation(Location arg0) { ((LocationContext) super.getWrappedDriver()).setLocation(arg0); }
@Override public Location location() { return locationContext.location(); }
@Override public void setLocation(Location location) { locationContext.setLocation(location); }
@Override public Location location() { return this.locationContext.location(); }
@Override public void setLocation(Location location) { this.locationContext.setLocation(location); }
@Override public Location call() throws Exception { return Utils.getLocationContext(getUnwrappedDriver()).location(); }