Skip to content

Commit eaa5b79

Browse files
Rename s_first_text s_last_text
first_s_text last_s_text Updated debug logging
1 parent edbd74f commit eaa5b79

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/appium_lib/common/element/text.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ def e_s_texts
1717

1818
# Get the first text element.
1919
# @return [Text]
20-
def s_first_text
20+
def first_s_text
2121
first_ele :text
2222
end
2323

2424
# Get the last text element
2525
# @return [Text]
26-
def s_last_text
26+
def last_s_text
2727
last_ele :text
2828
end
2929

lib/appium_lib/driver.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def update data, *args
4141
# A="OK" => A = "OK"
4242
data = File.read(toml).gsub /([^\s])\=(")/, "\\1 = \\2"
4343
data = TOML::Parser.new(data).parsed
44-
ap data
44+
ap data unless data.empty?
4545

4646
update data, 'APP_PATH', 'APP_APK', 'APP_PACKAGE',
4747
'APP_ACTIVITY', 'APP_WAIT_ACTIVITY',
@@ -175,7 +175,7 @@ def initialize opts={}
175175
@debug = opts.fetch :debug, !!defined?(Pry)
176176
puts "Debug is: #{@debug}"
177177
if @debug
178-
ap opts
178+
ap opts unless opts.empty?
179179
puts "OS is: #{@os}"
180180
patch_webdriver_bridge
181181
end

0 commit comments

Comments
 (0)