Skip to content

Commit e74dc46

Browse files
Add get_source
1 parent 2444290 commit e74dc46

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/appium_lib/helper.rb

+6
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ def source
184184
ap JSON.parse($driver.page_source)
185185
end
186186

187+
# Gets a JSON view of the current page
188+
# @return [JSON]
189+
def get_source
190+
JSON.parse($driver.page_source)
191+
end
192+
187193
# iOS only. On Android uiautomator always returns an empty string for EditText password.
188194
#
189195
# Password character returned from value of UIASecureTextField

0 commit comments

Comments
 (0)