|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.webdriver.util.WritablePage
public class WritablePage
Implements the page recording.
| Constructor Summary | |
|---|---|
WritablePage(Map<String,Object> information,
org.openqa.selenium.WebDriver driver)
The writable with extra information plus web driver. |
|
WritablePage(org.openqa.selenium.WebDriver driver)
Writable page by web driver. |
|
| Method Summary | |
|---|---|
protected void |
dump(File from,
String target,
Map<String,String> map,
String label)
Dump the file from temporary to target. |
protected void |
dumpScreenshot(org.openqa.selenium.WebDriver source,
org.openqa.selenium.TakesScreenshot driver)
Dump a screen shot of web driver which implements TakesScreenshot. |
protected String |
getExtension(File scrFile)
Gets the file extension. |
Map<String,Object> |
getInformation()
|
boolean |
hasInformation()
|
Map<String,String> |
writeTo(String target)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WritablePage(org.openqa.selenium.WebDriver driver)
driver - The driver.
public WritablePage(Map<String,Object> information,
org.openqa.selenium.WebDriver driver)
information - The extra information.driver - The web driver.| Method Detail |
|---|
public boolean hasInformation()
hasInformation in interface IWritable
protected void dumpScreenshot(org.openqa.selenium.WebDriver source,
org.openqa.selenium.TakesScreenshot driver)
throws IOException
TakesScreenshot.
source - The web driver source.driver - The web driver casted to screenshot object.
IOException - On writing errors.protected String getExtension(File scrFile)
scrFile - The source.
public Map<String,Object> getInformation()
getInformation in interface IWritable
public Map<String,String> writeTo(String target)
throws ResultException
writeTo in interface IWritableResultException
protected void dump(File from,
String target,
Map<String,String> map,
String label)
throws ResultException
from - The temporary file.target - The target.map - The map of informations.label - The label to be used.
ResultException - On dump errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||