Forum Discussion
Last time I tried it that way, it wasn't reliable and kept focussing on the wrong window!
If it works properly now, that's handy to know for future reference.
Guys, did you find a solution on this?
I am trying to open two browsers and then to switch between them using BrowserWindow.SetFocus()
While focus is switches between browser windows the actual focus keeps the last browser instance and all interactions goes there.
- djadhav9 years agoRegular Contributor
From what I understand what you're trying to test is an 'application feature'.
" The test goal is to verify that when one user is doing an specific action on that page (seting a textbox for instance), another user can't do the action (setting the same textbox) because the application blocks some actions when some user is doing it."
Couldn't you do this by opening 2 different browsers and doing the same activity? I don't see how using the same or different browser changes any test results but your life will be much easier by using 2 different browsers.
e.g. firefox and ie.
You can always switch browsers and re test to add another test case.
- Colin_McCrae9 years agoCommunity Hero
I raised a ticket with Smartbear about this.
With multiple browsers, focus and "bringing to front", has not been handled properly in Chrome (not sure about other browsers) since they stopped using the NPAPI plugin.
They recreated the problem and it should be fixed in the next release.
I'm using Chrome and my current workaround is to find the BrowserWindow object with the correct caption (mine are all different) and then apply the "Activate" method to that BrowserWindow. This activates the right browser for me and focus is correct. Not ideal, but it will work for me until they fix it.
Which browser are you using?
- baxatob9 years agoCommunity Hero
Hi Colin,
Thanks for replay.
I am using IE 11 and FireFox 38.
Related Content
Recent Discussions
- 2 days agoGane195