You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a website that opens a secondary page after selecting a specific button. The point is, I would like to close this page through rpa without needing to use keyboard commands. Something like r.close(url=address), I think it's more assertive. Thanks
The text was updated successfully, but these errors were encountered:
Hi @Fugimura, I'm afraid that there isn't a direct function to allow closure of a tab, but there is a frame() function to explicitly interact with a tab and the dom() function which you can combine to issue tab closure without using keyboard().
See this example:
r.init()
r.url('https://tebel.org')
r.click('About')
r.wait()
# specify a unique part of the URL that you want to interact with, so rpa package knows which tab you wantr.popup('about_tebel')
# use javascript close() command and dom() function to send custom javascript code to browser to close tabr.dom('close()')
kensoh
changed the title
Close specific tab of a site
Close specific tab of a site - use keyboard() or dom() + JavaScript close()
May 14, 2023
I have a website that opens a secondary page after selecting a specific button. The point is, I would like to close this page through rpa without needing to use keyboard commands. Something like r.close(url=address), I think it's more assertive. Thanks
The text was updated successfully, but these errors were encountered: