Skip to content

Commit 2a12cfa

Browse files
author
Denys Zaiats
committed
[master] - hot fix for getting resolution
1 parent ed45401 commit 2a12cfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/itarray/automotion/internal/DriverFacade.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public void setResolution(Dimension resolution) {
140140
}
141141

142142
public Dimension getResolution() {
143-
if (!isAppiumContext() && getApp() == null) {
143+
if (isAppiumContext() && getApp() == null) {
144144
String resolution = ((RemoteWebDriver) driver).getCapabilities().getCapability("deviceScreenSize").toString();
145145
int width = Integer.parseInt(resolution.split("x")[0]);
146146
int height = Integer.parseInt(resolution.split("x")[1]);

0 commit comments

Comments
 (0)