com.opera.core.systems.scope.services
Interface IWindowManager

All Known Implementing Classes:
WindowManager

public interface IWindowManager


Method Summary
 void addWindow(WmProtos.WindowInfo window)
           
 void clearFilter()
           
 void closeAllWindows()
           
 void closeWindow(int windowId)
           
 void filterActiveWindow()
           
 void filterWindow(java.lang.Integer windowId)
           
 void findDriverWindow()
          Find a window suitable for driving, find the active window, if it is not a normal window, find the first normal window via JXPath.
 int getActiveWindowId()
           
 java.util.concurrent.atomic.AtomicInteger getLastHttpResponseCode()
           
 int getOpenWindowCount()
           
 java.util.List<java.lang.Integer> getWindowHandles()
           
 void init()
          Get the list of all windows, then find a driver window (which needs to be 'normal' window) after that set the active window to that window.
 void openUrl(int windowId, java.lang.String url)
           
 void removeWindow(java.lang.Integer windowId)
           
 void resetWindowsList()
           
 void setActiveWindow(java.lang.String title)
           
 void setActiveWindowId(java.lang.Integer windowId)
          Sets the active window if the window is of type 'normal' discards any other window such as 'dialog' or 'unknown'.
 

Method Detail

setActiveWindowId

void setActiveWindowId(java.lang.Integer windowId)
Sets the active window if the window is of type 'normal' discards any other window such as 'dialog' or 'unknown'.


getActiveWindowId

int getActiveWindowId()

addWindow

void addWindow(WmProtos.WindowInfo window)

removeWindow

void removeWindow(java.lang.Integer windowId)

filterActiveWindow

void filterActiveWindow()

closeAllWindows

void closeAllWindows()

init

void init()
Get the list of all windows, then find a driver window (which needs to be 'normal' window) after that set the active window to that window.


findDriverWindow

void findDriverWindow()
Find a window suitable for driving, find the active window, if it is not a normal window, find the first normal window via JXPath.

Throws:
WebDriverException - if no window is available for driving

setActiveWindow

void setActiveWindow(java.lang.String title)

getWindowHandles

java.util.List<java.lang.Integer> getWindowHandles()

getOpenWindowCount

int getOpenWindowCount()

getLastHttpResponseCode

java.util.concurrent.atomic.AtomicInteger getLastHttpResponseCode()

resetWindowsList

void resetWindowsList()

clearFilter

void clearFilter()

filterWindow

void filterWindow(java.lang.Integer windowId)

openUrl

void openUrl(int windowId,
             java.lang.String url)

closeWindow

void closeWindow(int windowId)


Copyright © 2011. All Rights Reserved.