-
-
Notifications
You must be signed in to change notification settings - Fork 752
Closed
Closed
Copy link
Description
What are you trying to achieve?
I.waitForElement() not Working after last Update in Android.
I'm trying: I.waitForElement("#com.gastro.dev:id/next").
What do you get instead?
Before update "I.waitForElement()" in Android was waiting until I see the element in screen. But now I have this problem in execute the same command:
-- FAILURES:
1) Login
Login with e-mail and password on first use:
Promise was rejected with the following reason: Error: Locator Strategy 'css selector' is not supported for this session
Scenario Steps:
- I.runOnAndroid(() => {
I.waitForElement(this.android.initialBoard.continue, 10);
//I.waitForText('PULAR', 10);
I.tap(this.android.initialBoard.continue);
//I.waitForElement(this.android.initialBoard.letsGo, 10);
I.waitForText('INICIAR', 10);
I.tap(this.android.initialBoard.letsGo);
}) at Object.accessAndPrepareApp (pages/home_page.js:75:7)
- I.wait(1) at Test.Scenario (step_definition/login_test.js:9:5)Provide test source code if related
// paste testDetails
- CodeceptJS version: 2.0.2
- NodeJS Version: v10.14.2
- Operating System: macOS Mojave
- Protractor || WebDriverIO 5.2.4 || Nightmare version (if related)
- Configuration file:
{
"tests": "../step_definition/login_test.js",
"timeout": 10000,
"output": "../output",
"helpers": {
"Appium": {
"host": "127.0.0.1",
"port": 4723,
"app": "/Users/xxxxxxx/Desktop/app-dev.apk",
"platform": "Android",
"restart": "true",
"useNewWDA": true,
"wdaLaunchTimeout": "999999999",
"wdaConnectionTimeout": "999999999",
"newCommandTimeout": "5000",
"desiredCapabilities": {
"useNewWDA": true,
"appPackage": "com.xxxxxxx.xxxxx.dev",
"appActivity": "com.xxxxxx.xxxxx.modules.xxxxx",
"deviceName": "xxxxxxx",
"platformVersion": "x.x",
"newCommandTimeout": "5000"
}
}
},
"include": {
"I": "../steps_file.js",
"homePage": "../pages/home_page.js"
},
"bootstrap": false,
"mocha": {},
"name": "codeceptjs-mobile"
}I sad this change in code:
narlei, ehomrich, alisonsm92, resmall, JessicaMouta and 1 more
