public class ExampleSeleniumTest extends WComponentSeleniumTestCase
This class is an example showing various ways of testing a WComponent UI using Selenium. The same UI is tested multiple times using different approaches.
| Constructor and Description |
|---|
ExampleSeleniumTest()
Creates a ExampleSeleniumTest.
|
| Modifier and Type | Method and Description |
|---|---|
void |
testDuplicatorWithGettersWComponentImpl()
This test implementation uses ByWComponent to find the HTML controls.
|
void |
testDuplicatorWithGettersWComponentPathImpl()
This test implementation uses ByWComponentPath to find the HTML controls.
|
void |
testDuplicatorWithNoGettersHtmlImpl()
This test implementation uses a 'traditional' Selenium approach, matching
on HTML elements.
|
void |
testDuplicatorWithNoGettersWComponentPathImpl()
This test implementation uses ByWComponentPath to find the HTML controls.
|
getDriver, getDriverId, getDriverType, getDriverWithoutLaunching, getUrl, getUserContextForSession, releaseDriver, setDriver, setUrlpublic ExampleSeleniumTest()
public void testDuplicatorWithNoGettersWComponentPathImpl()
ExampleUI
WTabSet
WTab
TextDuplicator
WTextField
WButton
WButton
WTab
TextDuplicatorWithGetters
WTextField
WButton
WButton
So to obtain the first WTextField, any of the following paths could be
used:
public void testDuplicatorWithNoGettersHtmlImpl()
public void testDuplicatorWithGettersWComponentPathImpl()
testDuplicatorWithNoGettersWComponentPathImpl() for an
explanation of how the paths function.public void testDuplicatorWithGettersWComponentImpl()
Copyright © 2024. All rights reserved.