Skip to content

Commit

Permalink
Merge pull request #805 from ignacionar/#801
Browse files Browse the repository at this point in the history
#801 Reset device to Portrait mode coordinates when pressing home button
  • Loading branch information
vdelendik authored Nov 2, 2023
2 parents 785b314 + 71fc7c6 commit 97c47be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/units/ios-device/plugins/wda.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ module.exports = syrup.serial()
iosutil.pressButton.call(wdaClient, message.key)
})
}
iosutil.pressButton.call(wdaClient, message.key)
})
.on(wire.StoreOpenMessage, (channel, message) => {
wdaClient.appActivate('com.apple.AppStore')
Expand Down
3 changes: 3 additions & 0 deletions lib/units/ios-device/plugins/wda/WdaClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ module.exports = syrup.serial()
uri: `${this.baseUrl}/session/${this.sessionId}/wda/pressButton`,
body: {name: "home"},
json: true
}).then(() => {
// #801 Reset coordinates to Portrait mode after pressing home button
return this.rotation({orientation: 'PORTRAIT'})
})
} else {
// #749: Fixing button action for AppleTV
Expand Down

0 comments on commit 97c47be

Please sign in to comment.