WebDriverTargetLocator
interface WebDriverTargetLocator (View source)
Used to locate a given frame or window.
Methods
Switch to the main document if the page contains iframes. Otherwise, switch to the first frame on the page.
Switch to the currently active modal dialog for this particular driver instance.
Switches to the element that currently has focus within the document currently "switched to", or the body element if this cannot be detected.
Details
        
                            WebDriver
    defaultContent()
        
    
    Switch to the main document if the page contains iframes. Otherwise, switch to the first frame on the page.
        
                            WebDriver
    frame(WebDriverElement|string $frame)
        
    
    Switch to the iframe by its id or name.
        
                            WebDriver
    window(string $handle)
        
    
    Switch the focus to another window by its handle.
        
                            WebDriverAlert
    alert()
        
    
    Switch to the currently active modal dialog for this particular driver instance.
        
                            WebDriverElement
    activeElement()
        
    
    Switches to the element that currently has focus within the document currently "switched to", or the body element if this cannot be detected.