java.lang.Object
com.zingtongroup.loggingseleniumwebdriver.loggingseleniumcomponents.LoggingTargetLocator
All Implemented Interfaces:
LoggingSeleniumComponent, org.openqa.selenium.WebDriver.TargetLocator

public class LoggingTargetLocator
extends java.lang.Object
implements org.openqa.selenium.WebDriver.TargetLocator, LoggingSeleniumComponent
  • Field Summary

    Fields
    Modifier and Type Field Description
    LoggerList loggerList  
    org.openqa.selenium.WebDriver.TargetLocator targetLocator  
  • Constructor Summary

    Constructors
    Constructor Description
    LoggingTargetLocator​(org.openqa.selenium.WebDriver.TargetLocator targetLocator, LoggerList loggerList)  
  • Method Summary

    Modifier and Type Method Description
    org.openqa.selenium.WebElement activeElement()  
    org.openqa.selenium.Alert alert()  
    org.openqa.selenium.WebDriver defaultContent()  
    org.openqa.selenium.WebDriver frame​(int index)  
    org.openqa.selenium.WebDriver frame​(java.lang.String nameOrId)  
    org.openqa.selenium.WebDriver frame​(org.openqa.selenium.WebElement frameElement)  
    void log​(java.lang.String logMessage)  
    org.openqa.selenium.WebDriver newWindow​(org.openqa.selenium.WindowType typeHint)  
    org.openqa.selenium.WebDriver parentFrame()  
    void pauseLogging()  
    void resumeLogging()  
    org.openqa.selenium.WebDriver window​(java.lang.String nameOrHandle)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • loggerList

      public final LoggerList loggerList
    • targetLocator

      public final org.openqa.selenium.WebDriver.TargetLocator targetLocator
  • Constructor Details

    • LoggingTargetLocator

      public LoggingTargetLocator​(org.openqa.selenium.WebDriver.TargetLocator targetLocator, LoggerList loggerList)
  • Method Details

    • pauseLogging

      public void pauseLogging()
      Specified by:
      pauseLogging in interface LoggingSeleniumComponent
    • resumeLogging

      public void resumeLogging()
      Specified by:
      resumeLogging in interface LoggingSeleniumComponent
    • log

      public void log​(java.lang.String logMessage)
      Specified by:
      log in interface LoggingSeleniumComponent
    • frame

      public org.openqa.selenium.WebDriver frame​(int index)
      Specified by:
      frame in interface org.openqa.selenium.WebDriver.TargetLocator
    • frame

      public org.openqa.selenium.WebDriver frame​(java.lang.String nameOrId)
      Specified by:
      frame in interface org.openqa.selenium.WebDriver.TargetLocator
    • frame

      public org.openqa.selenium.WebDriver frame​(org.openqa.selenium.WebElement frameElement)
      Specified by:
      frame in interface org.openqa.selenium.WebDriver.TargetLocator
    • parentFrame

      public org.openqa.selenium.WebDriver parentFrame()
      Specified by:
      parentFrame in interface org.openqa.selenium.WebDriver.TargetLocator
    • window

      public org.openqa.selenium.WebDriver window​(java.lang.String nameOrHandle)
      Specified by:
      window in interface org.openqa.selenium.WebDriver.TargetLocator
    • newWindow

      public org.openqa.selenium.WebDriver newWindow​(org.openqa.selenium.WindowType typeHint)
      Specified by:
      newWindow in interface org.openqa.selenium.WebDriver.TargetLocator
    • defaultContent

      public org.openqa.selenium.WebDriver defaultContent()
      Specified by:
      defaultContent in interface org.openqa.selenium.WebDriver.TargetLocator
    • activeElement

      public org.openqa.selenium.WebElement activeElement()
      Specified by:
      activeElement in interface org.openqa.selenium.WebDriver.TargetLocator
    • alert

      public org.openqa.selenium.Alert alert()
      Specified by:
      alert in interface org.openqa.selenium.WebDriver.TargetLocator