Images
Interactions with img
tag.
Reading the element
Getting the right element class for the xpath
| my_image = web.element('//*[id="myImage"]')
type(my_select)
|
Outputfastrpa.core.elements.ImageElement
Try to get a ImageElement
| my_image = web.image('//*[id="myImage"]')
type(my_select)
|
Outputfastrpa.core.elements.ImageElement
Reference
Get the image path from src attribute
Output'https://mysite.com/resources/image.png'
Get the alternative text from alt attribute
Save the image on the current workdir
Save the image on a custom path
| my_image.save('/my/path/image.png')
|