@@ -24,7 +24,7 @@ export declare class AppiumDriver {
24
24
private _logPath ;
25
25
private _storageByDeviceName ;
26
26
private _storageByPlatform ;
27
- private constructor ( _driver , _wd , _webio , _driverConfig , _args ) ;
27
+ private constructor ( ) ;
28
28
readonly imageHelper : ImageHelper ;
29
29
defaultWaitTime : number ;
30
30
readonly capabilities : any ;
@@ -138,6 +138,11 @@ export declare class AppiumDriver {
138
138
logPageSource ( fileName : string ) : Promise < void > ;
139
139
static createAppiumDriver ( port : number , args : INsCapabilities ) : Promise < AppiumDriver > ;
140
140
private static applyAdditionalSettings ( args ) ;
141
+ /**
142
+ * Send the currently active app to the background
143
+ * @param time
144
+ */
145
+ backgroundApp ( time : number ) : Promise < void > ;
141
146
resetApp ( ) : Promise < void > ;
142
147
init ( ) : Promise < void > ;
143
148
quit ( ) : Promise < void > ;
@@ -154,12 +159,12 @@ export declare class AppiumDriver {
154
159
* @param xPath
155
160
* @param waitForElement
156
161
*/
157
- findElementByXPathIfExists ( xPath : string , waitForElement ?: number ) : Promise < any > ;
162
+ findElementByXPathIfExists ( xPath : string , waitForElement ?: number ) : Promise < UIElement > ;
158
163
/**
159
164
* Search for element by given text but does not throw error if can not find it. Instead returns 'undefined'.
160
165
* @param text
161
166
* @param match
162
167
* @param waitForElement
163
168
*/
164
- findElementByTextIfExists ( text : string , match ?: SearchOptions , waitForElement ?: number ) : Promise < any > ;
169
+ findElementByTextIfExists ( text : string , match ?: SearchOptions , waitForElement ?: number ) : Promise < UIElement > ;
165
170
}
0 commit comments