Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made some pagefactory classes public #630

Merged
merged 2 commits into from
Apr 26, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,21 @@
import java.lang.reflect.AnnotatedElement;
import java.lang.reflect.Field;

class AppiumElementLocatorFactory implements CacheableElementLocatorFactory {
public class AppiumElementLocatorFactory implements CacheableElementLocatorFactory {
private final SearchContext searchContext;
private final TimeOutDuration timeOutDuration;
private final WebDriver originalWebDriver;
private final AppiumByBuilder builder;

/**
* Creates a new mobile element locator factory.
*
* @param searchContext The context to use when finding the element
* @param timeOutDuration is a POJO which contains timeout parameters for the element to be searched
* @param originalWebDriver is an instance of WebDriver that is going to be used by a proxied element
* @param builder is handler of Appium-specific page object annotations
*/

public AppiumElementLocatorFactory(SearchContext searchContext, TimeOutDuration timeOutDuration,
WebDriver originalWebDriver, AppiumByBuilder builder) {
this.searchContext = searchContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
import java.util.Map;
import java.util.Optional;

class DefaultElementByBuilder extends AppiumByBuilder {
public class DefaultElementByBuilder extends AppiumByBuilder {

protected DefaultElementByBuilder(String platform, String automation) {
public DefaultElementByBuilder(String platform, String automation) {
super(platform, automation);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
import java.util.List;
import java.util.Optional;

class WidgetByBuilder extends DefaultElementByBuilder {
public class WidgetByBuilder extends DefaultElementByBuilder {

protected WidgetByBuilder(String platform, String automation) {
public WidgetByBuilder(String platform, String automation) {
super(platform, automation);
}

Expand Down