Skip to content

Commit b91762d

Browse files
mialeskaDmitryBogatko
authored andcommitted
Update README.md (#53)
1 parent 7884bb2 commit b91762d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,14 @@ browser.waitForPageToLoad();
3333

3434
4. Use ElementFactory class's methods to get an instance of each element.
3535
```java
36-
ElementFactory elementFactory = new ElementFactory();
37-
ITextBox txbSearch = elementFactory.getTextBox(By.id("searchInput"), "Search");
38-
txbSearch.submit();
39-
browser.waitForPageToLoad();
36+
ITextBox txbSearch = new ElementFactory().getTextBox(By.id("searchInput"), "Search");
4037
```
4138

4239
5. Call element's methods to perform action with element:
4340
```java
44-
txbSearch.type("quality assurance");
41+
txbSearch.type("Selenium WebDriver");
42+
txbSearch.submit();
43+
browser.waitForPageToLoad();
4544
```
4645

4746
6. Quit browser at the end

0 commit comments

Comments
 (0)