RPA-Python icon indicating copy to clipboard operation
RPA-Python copied to clipboard

How to navigate to previous page without visual automation - use dom()

Open kompleksanda opened this issue 3 years ago • 4 comments

Hi, how do I navigate forward and backwards on the browser without visual automation? Thanks

kompleksanda avatar Jul 04 '23 21:07 kompleksanda

Try below (not at laptop now to validate). Below uses dom() to send JavaScript code to browser to run.

r.dom('window.history.back()') r.dom('window.history.forward()')

kensoh avatar Jul 04 '23 21:07 kensoh

Tagging @kompleksanda

kensoh avatar Jul 04 '23 21:07 kensoh

Closing issue for now but let me know if above doesn't work. I think some online sources even omit the window base keyword and just use history.back()

kensoh avatar Jul 04 '23 21:07 kensoh

Thanks Kensoh!

kompleksanda avatar Jul 05 '23 06:07 kompleksanda