I can switch between two tabs/windows but my requirement is to know or get active window between them.
In my project, on a click of a webElement of a page a random pop(tab/window) gets opened and I would like to know whether that(new) window has focus or my original page.
I tried to use JNA Api to get the active window and its title but my web page is remotely located.
I would like know the active window title of a browser or system which is remotely located(need this for all platforms and browsers)
Perfect solution is greatly appreciated.