Skip to content

Commit 01f4ecf

Browse files
Fix 'undefined' is not a function
1 parent af76d4d commit 01f4ecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/appium_lib/ios/patch.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def type text
3838
js = <<-JS
3939
if (au.mainApp().keyboard().type() !== "UIAElementNil") {
4040
var startY = au.mainApp().keyboard().rect().origin.y - 10;
41-
var endY = au.mainWindow.rect().size.height - 10;
41+
var endY = au.mainWindow().rect().size.height - 10;
4242
au.flickApp(0, startY, 0, endY);
4343
}
4444
JS

0 commit comments

Comments
 (0)