Support > Forums > OpenBots Studio > Check current tab in browser

Check current tab in browser

Carlos Cabezas

  • Reporter
  • Calender Icon January 04,2023 at 6:41 PM

Hi, is there any way to check if the actual tab in the browser is different (to detect a forward in a login, for example)?

I'm using the commands module, not the recorder tools.

This forum has 314 topics, 681 replies, and was last updated 21 days ago by Support Agent

Carlos Cabezas

  • Participant
  • Calender Icon January 04,2023 at 11:10 PM

I was using that to create the logic, but the bot can't find anything if the current tab isn't the same as the expected value in the filters. So I used a "*" in the TabName so the bot can look in any new tab/URL. Already tested a few times and the bot can find the correct route.

Thanks for your help!

Sahil Wadhwa

  • Participant
  • Calender Icon January 04,2023 at 8:21 PM

Hi ccabezas,

You can use the Native Browser Element Exists command to identify an element within the page. This will return a boolean, which you can use to check if the correct page active and add logic accordingly. As an alternative, you can also use the Native Browser Activate Tab command to ensure the correct tab in enabled.

Hope this helps!

You are not authorized to reply, please click here to login and add your reply to this topic.