forked from enviPath/enviPy
Current Dev State
This commit is contained in:
29
static/js/ketcher2/node_modules/webdriverio/lib/protocol/strings.js
generated
vendored
Normal file
29
static/js/ketcher2/node_modules/webdriverio/lib/protocol/strings.js
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
/**
|
||||
*
|
||||
* Returns application strings of the application in a specific language.
|
||||
*
|
||||
* <example>
|
||||
:stringsAsync.js
|
||||
it('should return app strings for Android application', function () {
|
||||
var appStrings = browser.strings();
|
||||
console.log(appStrings); // outputs all app strings
|
||||
|
||||
var russianAppStrings = browser.strings('ru')
|
||||
console.log(russianAppStrings); // outputs all russian app strings (if available)
|
||||
});
|
||||
* </example>
|
||||
*
|
||||
* @param {String} language if set it returns app strings only for that specific language
|
||||
*
|
||||
* @see https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/appium-bindings.md#app-strings
|
||||
* @type mobile
|
||||
* @for android
|
||||
*
|
||||
*/
|
||||
|
||||
export default function strings (language) {
|
||||
return this.requestHandler.create({
|
||||
path: '/session/:sessionId/appium/app/strings',
|
||||
method: 'POST'
|
||||
}, { language })
|
||||
}
|
||||
Reference in New Issue
Block a user