So I have two browser’s open and they are having the same title and also the same selectors on them as well!!!
I am wanting the bot to do a particular function on one and kinda pass on the same function on the other. The process is getting failed because it’s unable to decide which one among the two needs the bot needs to work on
Can any one please help on this… Also is the title a must if two browser activities are in use?
well… I guess since we are looking at the same web page in same browser, I think we shoul use two different browsers. for example, open one in IE and open the other in Chrome… So it will help the bot to identify on which one it should work on.
@Shubham_Varshney use different browsers like IE and Chrome and use parallel activity.
At a time it will work and rpa challenge is there try the that one. http://rpachallenge.com/
the problem is like this, in navigating the title changes…
It works fine but again I need to pass it again and again while invoking workflow… that’s totally fine but again doesn’t work if the title changes from the original one
I don’t think I fully understood what you said here bro…
But as I know, if you use the browser object variable, irrespective of the title, it can attach into the currently loaded page in attach browser activities… Isn’t that what you are looking for?
I am on a tab of a browser let’s say google.com and I navigate to search “Hello”
The title of the tab changes to “Hello - Google Search”
So I create a work flow and attach the browser till opening of “Google” only and search “Hello” as well
the attach browser output saves the selectors with title “Google”
Now when I pass this to invoke the further operation on the “Hello - Google search”
the bot gets confused with where it must go!!!
The titles here are just as an example… please don’t tell me to make the selector “google” with wild card XD (Just kidding )
Hi @Shubham_Varshney
as @Lahiru.Fernando mentioned use of the browser variable (outcome from open browser) would even for me the field where to look on. But you aware of this as well, so I do feel your scenario is more complex. However I did not understand in total, some requirements are unclear to me. May I ask you give us some more inputs:
Which Browser is used
Does the BOT opening the browsers and which mode (Open Browser, Open Process + URL)
Are the two pages opened in separate windows or in one browser with two tabs?
I do know that those scenarios,on first guess looking easy can be very tricky. A shot in blind: trying to take identification on process level (Powershell is helping much for RnD)
the browser process (DataType Process? has a property MainWindowTitle. This is the active Tab from the Browser (IE was RnDed). Maybe this information can be used for recalculating the Selector.
However we will help you on this. I can take this challenge with me today evening and can do some RnD if it is still open.
Does the BOT opening the browsers and which mode (Open Browser, Open Process + URL) - Via Bot and Open Browser
Are the two pages opened in separate windows or in one browser with two tabs? - Different Window
The title will change everytime we move from one tab to another… so now how will the bot knows exactly which tab it must go on which browser as the selectors are already stored for the original one!!!
Hi,
It is simple like this:
1/ Open first session and do your stuff (use OpenBrowser activity and make sure to set output variable UiBrowser, e.g. browser1)
2/ Open second session and do your stuff (use OpenBrowser activity and make sure to set output variable UiBrowser, e.g. browser2)
3/ Switch to first session (use AttachBrowser activity and set input variable to browser1, i.e. initialized in step 1)
4/ Switch to second session (use AttachBrowser activity and set input variable to browser2, i.e. initialized in step 2)
5/ And so on
Tested with IE and two parallel search sessions in google.com. Bot is not confused at all. Changing title doesn’t matter.
@Shubham_Varshney
I only understand you partly. I dont have chrome so I was forced to use IE. I implemented a test run and it confirms from above, got control via browser variable. Main.xaml (12.3 KB)
See above in your post:
Are the two pages opened in separate windows or in one browser with two tabs? - Different Window
The title will change everytime we move from one tab to another… so now how will the bot knows exactly which tab it must go on which browser as the selectors are already stored for the original one!!!
You mentioned different windows ← close to my test run and control via browser vars
But then you are talking about tabs. This confuses me a little bit.
Is it following scenario (shortened)
Browser comes in to one state the three tabs are open. Tab1, Tab2 has the opened the same page, so the selectors are same. Tab1 is active (working with attach) swithing to Tab2 fails as selector is same to Tab1 and attach browser will reactivate Tab1 instead of Tab2?
Oh - Thats bad, I remember
However May I ask you to confirm me if I now have correct understand you and my described scenario is matching your situation. Thanks.