mirror of
https://github.com/appium/appium.git
synced 2026-10-26 10:47:45 +08:00
fix: wrong example in image-elements [skip ci] (#12932)
This commit is contained in:
committed by
Jonathan Lipps
parent
8b19b3ca99
commit
2d2dbdfa3f
@@ -50,7 +50,7 @@ Note that each language-specific Appium client may make these settings available
|
||||
|
||||
```ruby
|
||||
# Ruby core
|
||||
@driver.update_settings({ getMatchedImageResult: false })
|
||||
@driver.update_settings({ getMatchedImageResult: true })
|
||||
el = @driver.find_element_by_image 'path/to/img.ong'
|
||||
img_el.visual # returns base64 encoded string
|
||||
```
|
||||
@@ -62,4 +62,4 @@ el = self.driver.find_element_by_image('path/to/img.ong')
|
||||
el.get_attribute('visual') # returns base64 encoded string
|
||||
```
|
||||
|
||||
reference: https://github.com/appium/appium-base-driver/pull/327
|
||||
reference: https://github.com/appium/appium-base-driver/pull/327
|
||||
|
||||
Reference in New Issue
Block a user