Skip to content

Commit

Permalink
Merge pull request #9 from selcukes/dev
Browse files Browse the repository at this point in the history
Release 1.2.3
  • Loading branch information
RameshBabuPrudhvi authored Aug 10, 2021
2 parents 895e933 + f5e34b5 commit 50a5098
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 20 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>io.github.selcukes</groupId>
<artifactId>selcukes-parent</artifactId>
<packaging>pom</packaging>
<version>1.2.3-SNAPSHOT</version>
<version>1.2.4-SNAPSHOT</version>

<modules>
<module>selcukes-commons</module>
Expand Down
2 changes: 1 addition & 1 deletion selcukes-commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>selcukes-parent</artifactId>
<groupId>io.github.selcukes</groupId>
<version>1.2.3-SNAPSHOT</version>
<version>1.2.4-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
27 changes: 17 additions & 10 deletions selcukes-commons/src/main/resources/error_codes.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
errors:
no_such_element_exception: "Issue1 - Wrong locator might be used:\n
Make sure that you are using a unique locator.\nIssue2 - The web page was not completely loaded and the element is not found:\n
you can use Selenium explicit waits, and wait until the element can be found on the page.\n"
element_not_visible_exception: "Issue1 - Locator might finds more elements and the first one is not visible:\n
Make sure that you are using a unique locator.
\nIssue2 - The element is hidden:\n
If your locator is good, then you can add a wait, that checks when the element is visible.\n"
stale_element_reference_exception: "Issue1 - The element was deleted from the DOM:
\nIssue2 - The element is no longer attached to the DOM:
\nRefresh the page and try to finding the element or wait for the element to load before you manipulate.\n"
no_such_element_exception: |
* Wrong locator might be used
Make sure that you are using a unique locator.
* The web page was not completely loaded and the element is not found
you can use Selenium explicit waits, and wait until the element can be found on the page.
element_not_visible_exception: |
* Locator might finds more elements and the first one is not visible
Make sure that you are using a unique locator.
* The element is hidden
If your locator is good, then you can add a wait, that checks when the element is visible.
stale_element_reference_exception: |
* The element was either deleted from the DOM or no longer attached to the DOM.
Try to find the element after page refresh
Add explicit wait for the element to load before you manipulate
timeout_exception: |
* This exception will be thrown when the page or element was not loaded after the specified wait time.
To overcome this, you can increase the wait time, if you are using an implicit wait, or better yet, replace the implicit wait with an explicit wait
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
import io.github.selcukes.commons.logging.LoggerFactory;
import org.testng.annotations.Test;

import java.util.NoSuchElementException;
import java.util.concurrent.TimeoutException;

public class BusinessExceptionTest {
private final Logger logger = LoggerFactory.getLogger(getClass());

public void createException() {

try {
throw new NoSuchElementException("Test not found");
throw new TimeoutException("Test not found");
} catch (Exception e) {
throw new BusinessException("Element not Found", e);
}
Expand Down
2 changes: 1 addition & 1 deletion selcukes-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>selcukes-parent</artifactId>
<groupId>io.github.selcukes</groupId>
<version>1.2.3-SNAPSHOT</version>
<version>1.2.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion selcukes-junit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>selcukes-parent</artifactId>
<groupId>io.github.selcukes</groupId>
<version>1.2.3-SNAPSHOT</version>
<version>1.2.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion selcukes-reports/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>selcukes-parent</artifactId>
<groupId>io.github.selcukes</groupId>
<version>1.2.3-SNAPSHOT</version>
<version>1.2.4-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion selcukes-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>selcukes-parent</artifactId>
<groupId>io.github.selcukes</groupId>
<version>1.2.3-SNAPSHOT</version>
<version>1.2.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>selcukes-server</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion selcukes-testng/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>selcukes-parent</artifactId>
<groupId>io.github.selcukes</groupId>
<version>1.2.3-SNAPSHOT</version>
<version>1.2.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>selcukes-testng</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion webdriver-binaries/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>selcukes-parent</artifactId>
<groupId>io.github.selcukes</groupId>
<version>1.2.3-SNAPSHOT</version>
<version>1.2.4-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down

0 comments on commit 50a5098

Please sign in to comment.