@@ -24,7 +24,7 @@ export declare class AppiumDriver {
2424 private _logPath ;
2525 private _storageByDeviceName ;
2626 private _storageByPlatform ;
27- private constructor ( _driver , _wd , _webio , _driverConfig , _args ) ;
27+ private constructor ( ) ;
2828 readonly imageHelper : ImageHelper ;
2929 defaultWaitTime : number ;
3030 readonly capabilities : any ;
@@ -138,6 +138,11 @@ export declare class AppiumDriver {
138138 logPageSource ( fileName : string ) : Promise < void > ;
139139 static createAppiumDriver ( port : number , args : INsCapabilities ) : Promise < AppiumDriver > ;
140140 private static applyAdditionalSettings ( args ) ;
141+ /**
142+ * Send the currently active app to the background
143+ * @param time
144+ */
145+ backgroundApp ( time : number ) : Promise < void > ;
141146 resetApp ( ) : Promise < void > ;
142147 init ( ) : Promise < void > ;
143148 quit ( ) : Promise < void > ;
@@ -154,12 +159,12 @@ export declare class AppiumDriver {
154159 * @param xPath
155160 * @param waitForElement
156161 */
157- findElementByXPathIfExists ( xPath : string , waitForElement ?: number ) : Promise < any > ;
162+ findElementByXPathIfExists ( xPath : string , waitForElement ?: number ) : Promise < UIElement > ;
158163 /**
159164 * Search for element by given text but does not throw error if can not find it. Instead returns 'undefined'.
160165 * @param text
161166 * @param match
162167 * @param waitForElement
163168 */
164- findElementByTextIfExists ( text : string , match ?: SearchOptions , waitForElement ?: number ) : Promise < any > ;
169+ findElementByTextIfExists ( text : string , match ?: SearchOptions , waitForElement ?: number ) : Promise < UIElement > ;
165170}
0 commit comments