Skip to content

Buttons

Interactions with button and a tags.

Reading the element

Getting the right element class for the xpath

my_button = web.element('//*[id="myButton"]')
type(my_select)
Output
fastrpa.core.elements.ButtonElement

Try to get a ButtonElement

my_button = web.button('//*[id="myButton"]')
type(my_select)
Output
fastrpa.core.elements.ButtonElement

Reference

my_button.is_link
Output
True
my_button.reference
Output
'https://www.mysite.com/page'

Perform a double click in the button


Output
my_button.double_click()