@Retention(value=RUNTIME) @Target(value={CONSTRUCTOR,METHOD,TYPE}) public @interface WebTest
| Modifier and Type | Optional Element and Description |
|---|---|
String[] |
additionalCapabilities
Provide additional capabilities that you may wish to add as a name value pair.
|
String |
browser
Establish browser profile to use.
|
int |
browserHeight
Define the height of the browser window that will be spawned
The width also has to be provided else the height is ignored
|
int |
browserWidth
Define the Width of the browser window that will be spawned
The height also has to be provided else the width is ignored
|
public abstract String browser
@Test()
@WebTest(browser = "*iexplore")
public void webtest2() {
Grid.open("http://paypal.com");
}
public abstract String[] additionalCapabilities
@Test
@WebTest(additionalCapabilities={"key1:value1","key2:value2"})
public void testMethod(){
//UI navigation steps
}
public abstract int browserHeight
@Test
@WebTest(browserHeight="height")
public void testMethod(){
//UI navigation steps
}
public abstract int browserWidth
@Test
@WebTest(browserWidth="width")
public void testMethod(){
//UI navigation steps
}
Copyright © 2016 PayPal Open Source. All rights reserved.