I have used do while loop to open four tabs (browser). I want to type into next tab after completing in each tab. But the problem is that it’s not typing in the next tab. I have used hot key (control+ tab) for next tab but it’s typing in the previous tab.
While opening get the browser element from each tab…and then use it in the following attach activities and then use each tab as you need
Alternately you can try using title to attach if they have different but using the output argument when you open it would be a beat option to switch between tabs
Hello @Samraat_Maharjan1
Use Attach browser for each Tab. In the attached browser place the type into activity for the respective Tab.
While the process running it will automatically switch the Tab and write data into it.
No, no I can’t do (getting browser element from each tab manually) that because I have opened multiple tabs (5) using loops as you can check my code above. Also, it’s the same page in my actual project as well. Since it takes time to load certain buttons. I need to duplicate the tab.
Can you please explain a bit about your second point? Okay, i will try to use element exists and see what it happens but it didn’t really work in my previous practice as it keeps searching for that element and throws false.
@Samraat_Maharjan1 , The concept is, If you are using the Attach browser in development, the activities work only in the specific tab. If you need to type in different tabs, use different attach browser in code and place type into activity inn respective attach browsers.
I basically duplicate same browser five times with hot key (control + shift + k). I wanted to do few actions (type into, click, select and submit) in one tab and move on to next tab upon completion. How can I achieve this? The problem is it throws error and it doesn’t type into next tab