Skip to content

Commit

Permalink
Extend Findable*Context in Browser and Frame
Browse files Browse the repository at this point in the history
  • Loading branch information
alechenninger committed Jul 8, 2015
1 parent 3698e2c commit f3b0604
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<groupId>com.redhat.darcy</groupId>
<artifactId>darcy-web</artifactId>
<version>0.2.2-SNAPSHOT</version>
<version>0.2.3-SNAPSHOT</version>
<packaging>jar</packaging>

<name>${project.groupId}:${project.artifactId}</name>
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/com/redhat/darcy/web/api/Browser.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@

package com.redhat.darcy.web.api;

import com.redhat.darcy.ui.api.FindableElementContext;
import com.redhat.darcy.ui.api.FindableParentContext;
import com.redhat.darcy.ui.api.View;
import com.redhat.darcy.ui.api.elements.Findable;
import com.redhat.synq.Event;

import java.time.Duration;
Expand All @@ -29,7 +30,7 @@
/**
* Abstracts all of the interactions a user might make with a browser.
*/
public interface Browser extends WebContext, Findable {
public interface Browser extends WebContext, FindableElementContext, FindableParentContext {
/**
* Constructs an {@link com.redhat.synq.Event} that will opens the URL and block until the
* associated {@link com.redhat.darcy.ui.api.View} is loaded, as defined by the {@link ViewUrl}
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/com/redhat/darcy/web/api/Frame.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@

package com.redhat.darcy.web.api;

import com.redhat.darcy.ui.api.elements.Findable;
import com.redhat.darcy.ui.api.FindableElementContext;
import com.redhat.darcy.ui.api.FindableParentContext;

/**
* Abstracts the basic functionality available for a frame or iFrame in a given browser.
*/
public interface Frame extends WebContext, Findable {
public interface Frame extends WebContext, FindableElementContext, FindableParentContext {
String getCurrentUrl();
String getSource();

Expand Down

0 comments on commit f3b0604

Please sign in to comment.