Skip to content

Commit b8e87b1

Browse files
committed
[update_dependencies] - the last one fix for mobile
1 parent 099ab1f commit b8e87b1

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)