Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 97c5c3f

Browse files
committed
0.3
1 parent c56750d commit 97c5c3f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "selenium-appium",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"description": "A brdige to make selenium-webdriver to drive appium to do native app testing",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/pageobject.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { WebDriver, WebElementCondition, By } from "selenium-webdriver";
77
import { IAppiumDriver } from './appiumdriver';
88

99
export interface IPageObject {
10-
elementExists(by: By, timeout?: number): Promise<boolean>;
10+
elementExists(by: By): Promise<boolean>;
1111
clickAndGotoPage<T extends IPageObject>(type: (new (...args: any[]) => T), by: By, timeout?: number): Promise<T>;
1212
gotoPage<T extends IPageObject>(type: (new (...args: any[]) => T), timeout?: number): Promise<T>;
1313
isReadyConditions(): WebElementCondition[];
@@ -51,12 +51,12 @@ export class PageObject implements IPageObject {
5151

5252
protected appiumDriver: IAppiumDriver;
5353

54-
constructor(dirver: IAppiumDriver, timeout?: number) {
54+
constructor(driver: IAppiumDriver, timeout?: number) {
5555
this.timeout = timeout;
56-
this.appiumDriver = dirver;
56+
this.appiumDriver = driver;
5757
}
5858

59-
elementExists(by: By, timeout?: number): Promise<boolean> {
59+
elementExists(by: By): Promise<boolean> {
6060
return new Promise<boolean>(resolve =>
6161
this.appiumDriver.seleniumDriver().findElement(by)
6262
.then(() => resolve(true))

0 commit comments

Comments
 (0)