I am trying to extract datatable from chrome browser. The process is that I’ve to loging and click on “view” in a table to get more information. Till this point everything is working as desire.
On clikcing view, new tab is opened. I need data from this new opened tab. I used hot keys like “ctrl+TAB”, “ctrl+2” to move focus on the new tab. But UiPath makes the original tab as active and hence it is unable to get the data.
I tried Classic UI, “attach browser” activity and also new “Use Application/Browser” activity without any luck. In new, it shows proper tab title.
I also tried other solutions given in the forum but no luck.
Can you try changing the use application to a new window,
as in Use application to go till the page where you click on view.
Once you click on view, use another “use Application”
Also use Show Window in the second use application.
that should work
Try to use the “Get Active Window” activity to retrieve the handle of the new tab and then switch focus to it using the “Set Focus” activity. This can help ensure that the correct tab is active before extracting the data. And also check Chrome settings to ensure that new tabs open in the foreground rather than in the background. This can help UiPath recognize the new tab as the active window.
In new version, “Get active window” is not there and I have to use " use applicaiton/browser" activity. The issue with activity is that it opens new browser window with the URL that was there during design/development time. At runtime, it is opening new browser window with the same URL.