fix: error getting window size during screen rotation

feat: add log
This commit is contained in:
余泓铮
2024-03-19 16:27:06 +08:00
parent 80c50707f3
commit 60580256c0
5 changed files with 44 additions and 3 deletions

View File

@@ -511,6 +511,10 @@ type WebDriver interface {
// since the location service needs some time to update the location data.
Location() (Location, error)
BatteryInfo() (BatteryInfo, error)
// WindowSize Return the width and height in portrait mode.
// when getting the window size in wda/ui2/adb, if the device is in landscape mode,
// the width and height will be reversed.
WindowSize() (Size, error)
Screen() (Screen, error)
Scale() (float64, error)