Skip to content

Commit d33ecd4

Browse files
authored
Updated readme (#161)
* updated readme to AqualityServices * fix typo
1 parent 8a9e933 commit d33ecd4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ We use interfaces where is possible, so you can implement your own version of ta
2020

2121
2. Create instance of Browser in your test method:
2222
```csharp
23-
var browser = BrowserManager.Browser;
23+
var browser = AqualityServices.Browser;
2424
```
2525

2626
3. Use Browser's methods directly for general actions, such as navigation, window resize, scrolling and alerts handling:
@@ -32,7 +32,11 @@ browser.WaitForPageToLoad();
3232

3333
4. Use ElementFactory class's methods to get an instance of each element:
3434
```csharp
35-
var emailTextBox = new ElementFactory().GetTextBox(By.Id("email_create"), "Email");
35+
var emailTextBox = AqualityServices.Get<IElementFactory>().GetTextBox(By.Id("email_create"), "Email");
36+
```
37+
Or you can inherit a class from Form class and use existing ElementFactory:
38+
```csharp
39+
private ITextBox EmailTextBox => ElementFactory.GetTextBox(By.Id("email_create"), "Email");
3640
```
3741

3842
5. Call element's methods to perform action with element:

0 commit comments

Comments
 (0)