christian-bromann on main
improve documentation (compare)
christian-bromann on main
fix runner:start reporting event (compare)
declare namespace WebdriverIO {
interface BrowserObject {
sharedStore:any
}
@krishna-auto there's a blog about that right here https://webdriver.io/blog/2019/06/25/file-upload.html
Hi @erwinheitzman , this worked for me on chrome, but its failing on headless chrome execution and as well as non-headless/headless mode in firefox, same failure "element is not interactable" error, In the above given link its given that "that is currently only supported when running Chrome", anyway to make it work on firefox && chrome headless? Thanks!
RequestError: connect ECONNREFUSED 127.0.0.1:4444
. If I restart the process it runs fine. How can I fix watch mode? I'm using all the latest versions of the published wdio packages and chromedriver
hello. when i try to run my tests this message appear on my terminal:
automated_testing
automated_testing
/var/www/automated-tests/node_modules/@wdio/cli/node_modules/fs-extra/lib/mkdirs/make-dir.js:86
} catch {
^
SyntaxError: Unexpected token {
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:599:28)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/var/www/automated-tests/node_modules/@wdio/cli/node_modules/fs-extra/lib/mkdirs/index.js:3:44)
i already updated my wdio package and it still appears.
My package list:
"@wdio/allure-reporter": "^6.1.12",
"@wdio/cli": "^6.1.12",
"@wdio/dot-reporter": "^6.1.9",
"@wdio/local-runner": "^6.1.12",
"@wdio/mocha-framework": "^6.1.8",
"@wdio/sauce-service": "^5.3.2",
"@wdio/spec-reporter": "^6.1.12",
"@wdio/sync": "^6.1.8",
"wdio-chromedriver-service": "^6.0.3",
"wdio-intercept-service": "^4.0.0",
"webdriverio": "^6.1.12"
:point_up: May 22, 2020 2:20 PM
Friendly bump. I am unable to get the wdio log level of trace
to print anything. I can only get levels debug
and up to print info.
I'm wishing to see trace levels to see if it would help debug this cryptic error some of my team members are receiving in which the Chrome browser instance is failing to launch for them.
This is the output they receive (not too informative as to why it is failing to spin up a Chrome browser instance) -- it simply outputs [0-0] FAILED
and that's it:
Execution of 1 spec files started at 2020-05-22T20:36:07.222Z
2020-05-22T20:36:07.227Z INFO @wdio/cli:launcher: Run onPrepare hook
2020-05-22T20:36:07.252Z INFO @wdio/local-runner: Start worker 0-0 with arg: src/conf/wdio.final.conf.js,--spec,src/test/some_feature/some_test/auto-orders-poc.spec.ts
[0-0] 2020-05-22T20:36:07.779Z INFO @wdio/local-runner: Run worker command: run
[0-0] FAILED
2020-05-22T20:36:25.633Z INFO @wdio/cli:launcher: Run onComplete hook
Spec Files: 0 passed, 1 failed, 1 total (100% completed) in 00:00:18
2020-05-22T20:36:25.637Z INFO @wdio/local-runner: Shutting down spawned worker
2020-05-22T20:36:25.892Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully
2020-05-22T20:36:25.893Z INFO @wdio/local-runner: shutting down
Hi guys, need help with wdio 6 mocha with opt delay
. I can't make it work.
This code works in pure mocha:
var assert = require('assert');
async function returnArr() {
return [2, 2, 1];
}
setTimeout(async function() {
const arr = await returnArr();
describe('my suite', function() {
for (let el of arr) {
it(`Is element ${el} has index 1`, async function() {
assert.equal(arr.indexOf(el), 1);
});
}
});
run();
}, 500);
But skips it in wdio mocha 'Spec Files: 0 passed, 1 skipped, 1 total (100% completed) in 00:00:03 '
Thats set up for mocha frmaework in the config:
mochaOpts: {
ui: 'bdd',
timeout: 3600000,
delay: true
},
Also synchronous version works in wdio(with deleted delay option)
function returnArr() {
return [2, 2, 1];
}
const arr = returnArr();
describe('my suite', function() {
for (let el of arr) {
it(`Is element ${el} has index 1`, async function() {
assert.equal(arr.indexOf(el), 1);
});
}
});