Skip to content

Commit f239b64

Browse files
d.bogatkod.bogatko
authored andcommitted
add resourcefile class
1 parent a2c32d6 commit f239b64

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

README.md

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,51 +12,41 @@ We use interfaces where is possible, so you can implement your own version of ta
1212

1313
1. To start work with this package, simply add the dependency to your pom.xml:
1414
```
15-
<repositories>
16-
<repository>
17-
<id>ossrh</id>
18-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
19-
</repository>
20-
</repositories>
21-
2215
<dependencies>
2316
...
2417
<dependency>
2518
<groupId>com.github.aquality-automation</groupId>
2619
<artifactId>aquality-selenium</artifactId>
27-
<version>1.0-SNAPSHOT</version>
28-
<classifier>jar-with-dependencies</classifier>
20+
<version>1.0</version>
2921
</dependency>
3022
...
3123
</dependencies>
3224
3325
```
3426

35-
2. Add configuration file [settings.json](./src/main/resources/settings.json) and localization [folder](./src/main/resources/localization/) to resources folder (usually `src/test/resources`)
36-
37-
3. Create instance of Browser:
27+
2. Create instance of Browser in your test method:
3828
```java
3929
Browser browser = BrowserManager.getBrowser();
4030
```
4131

42-
4. Use Browser's methods directly for general actions, such as navigation, window resize, scrolling and alerts handling:
32+
3. Use Browser's methods directly for general actions, such as navigation, window resize, scrolling and alerts handling:
4333
```java
4434
browser.maximize();
4535
browser.goTo("https://wikipedia.org");
4636
browser.waitForPageToLoad()
4737
```
4838

49-
5. Add elements you want to interact within the current form as private final fields. Use ElementFactory class's methods to get an instance of each element.
39+
4. Add elements you want to interact within the current form as private final fields. Use ElementFactory class's methods to get an instance of each element.
5040
```java
5141
ITextBox txbEmail = new ElementFactory().getTextBox(By.id("email_create"), "Email");
5242
```
5343

54-
6. Call element's methods to perform action with element:
44+
5. Call element's methods to perform action with element:
5545
```java
5646
txbEmail.type("email@domain.com");
5747
```
5848

59-
7. Quit browser at the end
49+
6. Quit browser at the end
6050
```
6151
browser.quit();
6252
```

pom.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@
66

77
<groupId>com.github.aquality-automation</groupId>
88
<artifactId>aquality-selenium</artifactId>
9-
<version>1.0</version>
9+
<version>1.1</version>
1010
<packaging>jar</packaging>
1111

12+
<name>Aquality Selenium</name>
13+
<description>Library around Selenium WebDriver</description>
14+
<url>https://github.com/aquality-automation/aquality-selenium-java</url>
15+
1216
<properties>
1317
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1418
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -39,6 +43,13 @@
3943
</license>
4044
</licenses>
4145

46+
<developers>
47+
<developer>
48+
<id>aquality-automation</id>
49+
<name>aquality-automation</name>
50+
</developer>
51+
</developers>
52+
4253
<dependencies>
4354
<dependency>
4455
<groupId>org.seleniumhq.selenium</groupId>

0 commit comments

Comments
 (0)