-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48f9406
commit c10914a
Showing
2 changed files
with
149 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
package utils; | ||
|
||
import org.openqa.selenium.By; | ||
import org.openqa.selenium.OutputType; | ||
import org.openqa.selenium.WebDriver; | ||
import org.openqa.selenium.WebElement; | ||
import org.openqa.selenium.support.events.WebDriverEventListener; | ||
|
||
public class EventReporter implements WebDriverEventListener { | ||
@Override | ||
public void beforeAlertAccept(WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public void afterAlertAccept(WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public void afterAlertDismiss(WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public void beforeAlertDismiss(WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public void beforeNavigateTo(String s, WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public void afterNavigateTo(String s, WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public void beforeNavigateBack(WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public void afterNavigateBack(WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public void beforeNavigateForward(WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public void afterNavigateForward(WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public void beforeNavigateRefresh(WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public void afterNavigateRefresh(WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public void beforeFindBy(By by, WebElement webElement, WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public void afterFindBy(By by, WebElement webElement, WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public void beforeClickOn(WebElement webElement, WebDriver webDriver) { | ||
System.out.println("Clicking on " + webElement.getText()); | ||
} | ||
|
||
@Override | ||
public void afterClickOn(WebElement webElement, WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public void beforeChangeValueOf(WebElement webElement, WebDriver webDriver, CharSequence[] charSequences) { | ||
|
||
} | ||
|
||
@Override | ||
public void afterChangeValueOf(WebElement webElement, WebDriver webDriver, CharSequence[] charSequences) { | ||
|
||
} | ||
|
||
@Override | ||
public void beforeScript(String s, WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public void afterScript(String s, WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public void beforeSwitchToWindow(String s, WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public void afterSwitchToWindow(String s, WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public void onException(Throwable throwable, WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public <X> void beforeGetScreenshotAs(OutputType<X> outputType) { | ||
|
||
} | ||
|
||
@Override | ||
public <X> void afterGetScreenshotAs(OutputType<X> outputType, X x) { | ||
|
||
} | ||
|
||
@Override | ||
public void beforeGetText(WebElement webElement, WebDriver webDriver) { | ||
|
||
} | ||
|
||
@Override | ||
public void afterGetText(WebElement webElement, WebDriver webDriver, String s) { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters