Skip to content

Commit

Permalink
update Ellithium Version after release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdelrhman-Ellithy committed Nov 22, 2024
1 parent 4759dff commit 501774a
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Here is the updated **Getting Started** section formatted for your README file:
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<Ellithiumversion>1.0.9</Ellithiumversion>
<Ellithiumversion>1.1.0</Ellithiumversion>
</properties>
<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
</profile>
</profiles>
<properties>
<EllithiumVersion>1.0.9</EllithiumVersion>
<EllithiumVersion>1.1.0</EllithiumVersion>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public String getText( By locator, int timeout, int pollingEvery) {
return text;
}
public void clickOnElement( By locator, int timeout, int pollingEvery) {
getFluentWait(timeout,pollingEvery)
.until(ExpectedConditions.elementToBeClickable(locator));
getFluentWait(timeout,pollingEvery)
.until(ExpectedConditions.visibilityOfElementLocated(locator));
findWebElement(locator).click();
}
public WebDriverWait generalWait(int timeout) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/properties/config.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Sep 09 13:46:17 EEST 2024
#Do not delete it, you can change it to the current version you use if needed
EllithiumVersion=1.0.9
EllithiumVersion=1.1.0

allureVersion=2.30.0
#runMode Options: BDD, NonBDD
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/Base/AppiumBase.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package Base;

import Ellithium.Utilities.interactions.WebDriverActions;
import Ellithium.Utilities.interactions.DriverActions;
import Ellithium.core.base.NonBDDSetup;
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.service.local.AppiumDriverLocalService;
Expand All @@ -13,7 +13,7 @@
public class AppiumBase extends NonBDDSetup {
protected AndroidDriver androidDriver;
protected AppiumDriverLocalService serviceBuilder;
protected WebDriverActions driverActions;
protected DriverActions driverActions;
@BeforeClass
public void setup() {
String appiumMainJsPath=System.getProperty("user.home").concat("\\AppData\\Roaming\\npm\\node_modules\\appium\\build\\lib\\main.js");
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/Pages/LoginPage.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package Pages;

import Ellithium.Utilities.interactions.WebDriverActions;
import Ellithium.Utilities.interactions.DriverActions;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
public class LoginPage {
WebDriver driver;
WebDriverActions driverActions;
DriverActions driverActions;
public LoginPage(WebDriver driver) {
this.driver=driver;
driverActions=new WebDriverActions(driver);
driverActions=new DriverActions(driver);
}
public void setUserName(String username){
driverActions.sendData(By.id("username"),username);
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/Pages/SearchPage.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package Pages;

import Ellithium.Utilities.interactions.WebDriverActions;
import Ellithium.Utilities.interactions.DriverActions;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
Expand All @@ -9,10 +9,10 @@

public class SearchPage {
WebDriver driver;
WebDriverActions driverActions;
DriverActions driverActions;
public SearchPage(WebDriver driver){
this.driver=driver;
driverActions=new WebDriverActions(driver);
driverActions=new DriverActions(driver);
}
public void searchItem(String itemName){
driverActions.sendData(By.id("searchBar"),itemName );
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/Pages/SecureAreaPage.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package Pages;

import Ellithium.Utilities.interactions.WebDriverActions;
import Ellithium.Utilities.interactions.DriverActions;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
public class SecureAreaPage {
WebDriver driver;
WebDriverActions driverActions;
DriverActions driverActions;
public SecureAreaPage(WebDriver Driver){
driver=Driver;

driverActions=new WebDriverActions(driver);
driverActions=new DriverActions(driver);
}
public String getLoginMassega(){
return driverActions.getText(By.id("flash"));
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/Tests/AppiumTest.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package Tests;

import Base.AppiumBase;
import Ellithium.Utilities.interactions.WebDriverActions;
import Ellithium.Utilities.interactions.DriverActions;
import Ellithium.core.driver.DriverFactory;
import Ellithium.core.driver.DriverType;
import io.appium.java_client.AppiumBy;
Expand All @@ -19,6 +19,6 @@ public void SmokeMobileTest() throws MalformedURLException, InterruptedException
options.setAppActivity("com.appyinnovate.e_invoice.MainActivity");
options.setAppPackage("com.appyinnovate.e_invoice");
androidDriver= DriverFactory.getNewDriver(DriverType.Android,new URL("http://0.0.0.0:4723"),options);
driverActions=new WebDriverActions(androidDriver);
driverActions=new DriverActions(androidDriver);
}
}

0 comments on commit 501774a

Please sign in to comment.