Skip to content

Commit 5c26137

Browse files
Android can't get alert text
Use other methods instead.
1 parent 36f68de commit 5c26137

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/appium_lib/android/element/alert.rb

+1-7
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ def alert_click value
77
button(value).click
88
end
99

10-
# Get the alert message text.
11-
# @return [String]
12-
def alert_text
13-
get_page
14-
end
15-
1610
# Accept the alert.
1711
# The last button is considered "accept."
1812
# @return [void]
@@ -40,4 +34,4 @@ def alert_dismiss
4034
def alert_dismiss_text
4135
first_button.text
4236
end
43-
end # module Appium::Android
37+
end # module Appium::Android

0 commit comments

Comments
 (0)