
public class ActivityWebDriverMapper extends Object
| Constructor and Description |
|---|
ActivityWebDriverMapper() |
| Modifier and Type | Method and Description |
|---|---|
String |
getActivity(org.openqa.selenium.WebDriver driver,
String activity) |
org.openqa.selenium.WebDriver |
getInstance(String activity)
Gets WebDriver instance via which a user can control activity.
|
void |
put(org.openqa.selenium.WebDriver instance,
List<String> activities) |
void |
removeActivities(org.openqa.selenium.WebDriver driver) |
public void put(org.openqa.selenium.WebDriver instance,
List<String> activities)
instance - activities - public org.openqa.selenium.WebDriver getInstance(String activity) throws WebDriverInstanceNotFoundException, NotUniqueWebDriverInstanceException
getInstance("foo.bar.Baz") is the same as getInstance("Baz"). In case there are classes which FQDN does
not equal but their simple name does, e.g. foo.bar.Baz and joe.doe.Baz, when executing
getInstance("Baz"), NotUniqueWebDriverInstanceException is thrown since we are not sure
what WebDriver instance a user wants to get.
You do not have to use simple name nor FQDN, it is sufficient to use shortest suffix of activity which is unique
across all suffixes of all activity classes.activity - activity you want to get WebDriver instance for which this driver controlsWebDriverInstanceNotFoundException - thrown in case WebDriver instance for such activity is not found.NotUniqueWebDriverInstanceException - thrown in case there is more than one WebDriver instance for given
activity.public void removeActivities(org.openqa.selenium.WebDriver driver)
Copyright © 2014 JBoss by Red Hat. All rights reserved.