public abstract class BrowserEvent extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
browserLabel |
protected BrowserContext |
context |
protected String |
filePrefix |
protected String |
label |
protected LocalDateTime |
time |
| Constructor and Description |
|---|
BrowserEvent() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
generateLabel() |
Browser |
getBrowser() |
<T> T |
getBrowser(Class<T> browser) |
BrowserContext |
getContext() |
org.openqa.selenium.WebDriver |
getDriver() |
<T> T |
getDriver(Class<T> driver) |
protected String |
getEventFileName(String name) |
LocalDateTime |
getTime() |
void |
init()
Is called before event is triggered.
|
abstract void |
notify(BrowserListener listener) |
void |
notifyEnabled(BrowserListener listener) |
void |
saveFile(byte[] bytes,
String name,
String extension) |
void |
saveFile(File file,
String name,
String extension) |
void |
saveFile(String content,
String name,
String extension) |
BrowserEvent |
with(BrowserContext context,
LocalDateTime time) |
protected BrowserContext context
protected LocalDateTime time
protected String browserLabel
protected String label
protected String filePrefix
public BrowserEvent with(BrowserContext context, LocalDateTime time)
public abstract void notify(BrowserListener listener)
public void notifyEnabled(BrowserListener listener)
public void init()
public BrowserContext getContext()
public LocalDateTime getTime()
public Browser getBrowser()
public <T> T getBrowser(Class<T> browser)
public org.openqa.selenium.WebDriver getDriver()
public <T> T getDriver(Class<T> driver)
protected String generateLabel()
Copyright © 2016 Etnetera a.s.. All rights reserved.