Skip to content

Tabs

To manage and navigate through browse tabs, use the following methods.

Accessing the object

1
2
3
app = FastRPA()
web = app.browse('https:...')
type(web.tabs)
Output
fastrpa.core.tabs.Tabs

Reference

Get opened tabs

web.tabs.list
Output
['AD9B396BF70C366D8A1FDE5450699D41', ...]

Get current tab

web.tabs.current
Output
'AD9B396BF70C366D8A1FDE5450699D41'

Get current tab index

web.tabs.current_index
Output
0

Get the opened tabs count

len(web.tabs)
Output
5

Open a new tab

This method also switch to the new tab and returns the new tab id.

web.tabs.new()
Output
'AD9B396BF70C366D8A1FDE5450699D41'

Close the current tab

web.tabs.close()

Check if a tab is opened

'AD9B396BF70C366D8A1FDE5450699D41' in web.tabs
Output
True