Skip to content

Commit

Permalink
updated read me
Browse files Browse the repository at this point in the history
  • Loading branch information
sethijatin committed Mar 30, 2018
1 parent 34842ae commit a7057d3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,15 @@ elementOne.isAligned().insideCentrally(elementTwo);

#### Describe

While most functions in the API were meant to be used directly into assertions, this specific function describes the relation between the two web elements.

```java
elementOne.describe().describeRelationTo(elementTwo);
```

Sample Output For Inside:

**
```java
Element is 'inside' the other element to which it is compared to.

Space Between Element Edges In Pixels
Expand All @@ -171,10 +173,11 @@ Sample Output For Inside:
Aligned Inside Horizontally : false
Aligned Inside Vertically : true
Aligned Inside Centrally : false
**
```

Sample Output For Near:
**

```java
Element is 'near' (on top right of) the other element to which it is compared to.

Space Between Element Edges In Pixels
Expand All @@ -191,9 +194,7 @@ Sample Output For Near:
Aligned Inside Horizontally : false
Aligned Inside Vertically : false
Aligned Inside Centrally : false
**

While most functions in the API were meant to be used directly into assertions, this specific function describes the relation between the two web elements.
```

# [BrowserStack](https://www.browserstack.com/start) is helping us getting better:

Expand Down

0 comments on commit a7057d3

Please sign in to comment.