public interface EmbeddedBrowser
| Modifier and Type | Interface and Description |
|---|---|
static class |
EmbeddedBrowser.BrowserType
Browser types.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the browser.
|
void |
closeOtherWindows()
Closes all other windows.
|
boolean |
elementExists(Identification identification) |
Object |
executeJavaScript(String script)
Execute JavaScript in the browser.
|
boolean |
fireEventAndWait(Eventable event)
fires the event.
|
String |
getCurrentUrl() |
String |
getDom()
Deprecated.
use
getStrippedDom(). |
String |
getFrameDom(String iframeIdentification) |
FormInput |
getInputWithRandomValue(FormInput inputForm) |
byte[] |
getScreenShot() |
String |
getStrippedDom()
Removes the stripped items from
PreCrawlConfiguration#getFilterAttributeNames(). |
String |
getStrippedDomWithoutIframeContent() |
String |
getUnStrippedDom()
Removes the stripped items from
PreCrawlConfiguration#getFilterAttributeNames(). |
org.openqa.selenium.WebElement |
getWebElement(Identification identification) |
void |
goBack()
Go back to the previous state.
|
void |
goToUrl(URL url)
Opens the url in the browser.
|
boolean |
input(Identification identification,
String text) |
boolean |
isVisible(Identification identification)
Checks if an element is visible.
|
void |
saveScreenShot(File file) |
void goToUrl(URL url)
url - the URL.boolean fireEventAndWait(Eventable event) throws org.openqa.selenium.ElementNotVisibleException, InterruptedException
event - the event.org.openqa.selenium.ElementNotVisibleExceptionInterruptedExceptionString getStrippedDom()
PreCrawlConfiguration#getFilterAttributeNames().String getUnStrippedDom()
PreCrawlConfiguration#getFilterAttributeNames().WebDriver#getPageSource()@Deprecated String getDom()
getStrippedDom().getStrippedDom().String getStrippedDomWithoutIframeContent()
void close()
void closeOtherWindows()
void goBack()
boolean input(Identification identification, String text) throws CrawljaxException
identification - the identification.text - the text.CrawljaxException - if fails.Object executeJavaScript(String script) throws CrawljaxException
script - The script to execute.CrawljaxException - On error.boolean isVisible(Identification identification)
identification - identification to use.String getCurrentUrl()
FormInput getInputWithRandomValue(FormInput inputForm)
inputForm - the input form.String getFrameDom(String iframeIdentification)
iframeIdentification - the iframe's name or id.boolean elementExists(Identification identification)
identification - the identification of the element to be checked.org.openqa.selenium.WebElement getWebElement(Identification identification)
identification - the identification of the element to be found.void saveScreenShot(File file) throws CrawljaxException
file - the file to write the screenshot to (png).CrawljaxException - if saving screenshots is not supported by the implementing class.byte[] getScreenShot()
throws CrawljaxException
CrawljaxException - if saving screenshots is not supported by the implementing class.Copyright © 2007-2013. All Rights Reserved.