Forum Discussion
I suspect you may have hit the same problem I raised here:
What version of TC, and what browser are you using?
With the NPAPI plugin for Chrome (pre v45) I didn't have to activate a browser before I used it. Just sending something to one of it's controls would cause it to activate and come to the foreground. Thats no longer the case. When I assign a browser in the background, and then send keys to it, the keys are sent to the browser currently in the foreground. Which is incorrect.
I'm also having to use the BrowserWindow object now to bring the browser I want into focus. Which can be a bit of pain with multiple browser windows open. But it works for now.
I still need to raise a support ticket for this as the behaviour is not the same with the new plugin. Maybe it'll have to stay like this, I don't know. But it was easier with the old version.
Here is an example of how I do it. This applies the always on top setting to the browser window used for testing.
Set testWindow = Sys.browser.BrowserWindow(0) Win32API.SetWindowPos(testWindow.Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE)
- Colin_McCrae9 years agoCommunity Hero
I raised a support ticket about it not bringing browser objects to the front.
SmartBear were able to reproduce the problem and a fix should be included in the next release. (Which may already be available, just back at work so not checked yet ...)
Related Content
- 8 years agoSundaytwins
- 11 years agomorde
- 7 years agom_essaid
Recent Discussions
- 5 hours agoSubhraDas
- 23 hours agotramuntana