|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware com.atlassian.jira.webtest.framework.impl.selenium.core.ui.SeleniumUi
public class SeleniumUi
Selenium implementation of WebTestUi
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.webtest.framework.core.ui.WebTestUi |
---|
WebTestUi.TargetSelector |
Field Summary |
---|
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware |
---|
assertThat, client, context, timeouts |
Constructor Summary | |
---|---|
SeleniumUi(SeleniumContext context)
|
Method Summary | |
---|---|
Locator |
body()
Locator of the current document's body element |
SeleniumUi |
clear(String locator)
|
SeleniumUi |
pressInBody(com.atlassian.webtest.ui.keys.KeySequence sequence)
Press a key sequence in the current document's body. |
WebTestUi.TargetSelector |
switchTo()
Switch to given window/frame. |
SeleniumUi |
typeChars(String locator,
String chars)
Selenium-specific method to type sequence of characters in a given locator. |
SeleniumUi |
typeCharsFast(String locator,
String chars)
Selenium-specific method to type sequence of characters in a given locator. |
SeleniumUi |
typeInLocator(String locator,
com.atlassian.webtest.ui.keys.KeySequence sequence)
Selenium-specific method to type given KeySequence in a given locator. |
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware |
---|
context |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SeleniumUi(SeleniumContext context)
Method Detail |
---|
public Locator body()
WebTestUi
body
in interface WebTestUi
public SeleniumUi pressInBody(com.atlassian.webtest.ui.keys.KeySequence sequence)
WebTestUi
pressInBody
in interface WebTestUi
sequence
- shortcut sequence to invoke
public SeleniumUi typeInLocator(String locator, com.atlassian.webtest.ui.keys.KeySequence sequence)
KeySequence
in a given locator.
Relieves tests from using SeleniumTypeWriter
directly.
locator
- Selenium-style locator (in the 'type=value' form) to type intosequence
- sequence to type
public SeleniumUi clear(String locator)
public SeleniumUi typeChars(String locator, String chars)
SeleniumTypeWriter
directly.
locator
- Selenium-style locator (in the 'type=value' form) to type intochars
- character sequence to type
public SeleniumUi typeCharsFast(String locator, String chars)
Selenium-specific method to type sequence of characters in a given locator.
Relieves tests from using SeleniumTypeWriter
directly.
Uses TypeMode.INSERT_WITH_EVENT
to enter characters faster.
locator
- Selenium-style locator (in the 'type=value' form) to type intochars
- character sequence to type
TypeMode.INSERT_WITH_EVENT
public WebTestUi.TargetSelector switchTo()
WebTestUi
switchTo
in interface WebTestUi
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |