christian-bromann on main
Fix failed test from conflictin… (compare)
christian-bromann on main
Remove unused constants (#6505) (compare)
Hi All i'm a bit new to the 'setting up' of automation frameworks. I've got an electron desktop app which I've configured to run spectron which under the hood accesses webdriverIO. Now i've used webdriver before i.e I recall the browser object. Reading online the browser object is application.client.
My automation test access the webdriverIO functions which is awesome! The only problem is. The intelisense for webdriverIO in spectron application.client does not show in VSCode for methods like element(), .getText(), pause(). The things native to webdriverIO how do I get them to appear to the programmer?
//iframe[contains(lower-case(@src), ‘exampleapp’)]
@Lecale Apparently there's also a 'matches' option with a case-insensitive flag 'i' in xpath 2.0:
//iframe[matches(@src,'exampleapp','i')]
Ref. https://stackoverflow.com/questions/2893551/case-insensitive-matching-in-xpath
Hi, faced the issue of stand-alone seleniun driver, there is already a solution?
Could not load plugin wdio from module './plugin/wdio':
Couldn't initialize service selenium-standalone from wdio plugin config.
It should be available either in '@wdio/selenium-standalone-service' package
My config is as follow
{
"name": "automate-qa",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "felix<firomerorom4>",
"license": "ISC",
"dependencies": {
"@codeceptjs/ui": "^0.3.8"
},
"devDependencies": {
"@wdio/selenium-standalone-service": "5.16.10"
}
}
Installed codecepts globally
Context: webdriverIO v5
Issue : console ouput variation makes me think local runner doesnt shutdown properly
Normal console log :
Spec Files: 1 passed, 1 total (100% completed) in 00:00:16
2020-05-22T19:48:56.766Z INFO @wdio/local-runner: Shutting down spawned worker
2020-05-22T19:48:57.018Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully
2020-05-22T19:48:57.018Z INFO @wdio/local-runner: shutting down
Suspected issue console:
[firefox 3.10.0-1062.4.3.el7.x86_64 linux #0-0] 29 passing (10m 3.4s)
Spec Files: 1 passed, 1 total (100% completed) in 00:10:08
This matters because I am running it in a script that should return 0 and I am wondering why the difference in console ouput.
My screenshots on failure are not happening as I want. I have this as my afterTest function:
afterTest: function (test) {
if (!test.passed) {
const secs = Math.floor(new Date().getTime() / 1000);
const fname = `${encodeURIComponent(test.title.trim().replace(/\s+/g, '-'))}_${secs}.png`;
const fp = join(process.cwd(), this.screenshotPath, fname);
console.info(`saving screenshot: ${fp}`);
browser.saveScreenshot(fp);
}
},
but it doesn't seem to happen right at the point of failure, but rather, later, after the bad page state is no longer shown. What would be causing this, and how can I work around/fix it?
restart: false
which looks to be deprecated... :/
browser.execute(() => {
// @ts-ignore
(document as HTMLDocument).querySelector('html').scroll();
});
Hi , am getting an abrupt error without much showing in the context with appium 1.17.1 and webdriverIo any version. So i assume its appium issue. if anything incorrect providedin config or a loose wire connection to devices or any other things, running the script always shows
ERROR webdriver: RequestError: read ECONNRESET. always shows this generic message.
Earlier with appium 1.15.1 it shows some specific error string e.g device of os 10 not found or etc...
so does it something with node_modules as i have 12.17.0. or what?
Hi , am getting an abrupt error without much showing in the context with appium 1.17.1 and webdriverIo any version. So i assume its appium issue. if anything incorrect providedin config or a loose wire connection to devices or any other things, running the script always shows
ERROR webdriver: RequestError: read ECONNRESET. always shows this generic message.
Earlier with appium 1.15.1 it shows some specific error string e.g device of os 10 not found or etc...
so does it something with node_modules as i have 12.17.0. or what?
@daljit08_gitlab Scroll above ECONNRESET, you will find the elaborated error, it is mostly configuration issue