File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
[caps]
2
2
platformName = "android"
3
3
app = "./api.apk"
4
+ appPackage = ""
5
+ appActivity = ""
4
6
5
7
[appium_lib]
6
8
sauce_username = ""
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ def ios_password length=1
18
18
# @option class_name [String,Symbol] the class name to filter on. case insensitive include match.
19
19
# @return [String]
20
20
def get_page element = source_window ( 0 ) , class_name = nil
21
- puts "Called get_page on #{ element } "
22
21
lazy_load_strings # populate @strings_xml
23
22
class_name = class_name . to_s . downcase
24
23
@@ -131,7 +130,8 @@ def page opts={}
131
130
window_number = -1
132
131
class_name = opts
133
132
end
134
- if current_context . start_with? 'WEBVIEW'
133
+ # current_context may be nil which breaks start_with
134
+ if current_context && current_context . start_with? ( 'WEBVIEW' )
135
135
s = get_source
136
136
parser = @android_html_parser ||= Nokogiri ::HTML ::SAX ::Parser . new ( Common ::HTMLElements . new )
137
137
parser . document . reset
You can’t perform that action at this time.
0 commit comments