Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 14:46
    christian-bromann synchronize #6744
  • 14:46

    christian-bromann on l10n_crowdin-translations_v2

    New translations Donate.md (Chi… (compare)

  • 14:39
    christian-bromann synchronize #6744
  • 14:39

    christian-bromann on l10n_crowdin-translations_v2

    New translations Donate.md (Chi… (compare)

  • 14:27
    christian-bromann synchronize #6744
  • 14:27

    christian-bromann on l10n_crowdin-translations_v2

    New translations Donate.md (Chi… (compare)

  • 14:16
    christian-bromann synchronize #6744
  • 14:16

    christian-bromann on l10n_crowdin-translations_v2

    New translations Donate.md (Chi… (compare)

  • 14:08
    christian-bromann synchronize #6744
  • 14:08

    christian-bromann on l10n_crowdin-translations_v2

    New translations Donate.md (Chi… (compare)

  • 13:57
    christian-bromann synchronize #6744
  • 13:57

    christian-bromann on l10n_crowdin-translations_v2

    New translations Donate.md (Chi… (compare)

  • 13:47
    christian-bromann synchronize #6744
  • 13:47

    christian-bromann on l10n_crowdin-translations_v2

    New translations Donate.md (Chi… (compare)

  • 13:39
    andrew-james-yoti opened #6873
  • 13:39
    christian-bromann synchronize #6744
  • 13:39

    christian-bromann on l10n_crowdin-translations_v2

    New translations Donate.md (Chi… (compare)

  • 13:07
    christian-bromann synchronize #6744
  • 13:07

    christian-bromann on l10n_crowdin-translations_v2

    New translations Donate.md (Chi… (compare)

  • 12:58
    christian-bromann synchronize #6744
Christoph Herold
@coeamyd
And this can be done without calling enablePerformanceAudits()?
To answer my question: Yes, it works without performance audits :-)
@christian-bromann Thanks a lot for your expertise!
krarpitgupta
@krarpitgupta
Hi @christian-bromann We are getting following error while trying to capture browser screenshot : Error: ENOENT: no such file or directory, open 'C:\project\sgfr01-ui-tests\test\evidence\snapshots\16-4-2021-13-47-41\screen_cc
_usd_2019.png' , Can you please help here ?
Christian Bromann
@christian-bromann
@krarpitgupta I advise to direct questions to the channel rather than to individual contributors .. besides there error message is pretty clear here
krarpitgupta
@krarpitgupta
ok point noted...between directory is available at mention path
browser.saveScreenshot(path.join(dirPath,/${screenTitle.toLowerCase()}${companyName.toLowerCase()} ${defaultCurrency.toLowerCase()}_${defaultEndYear}.png));
krarpitgupta
@krarpitgupta
Not sure what I am missing here :(
krarpitgupta
@krarpitgupta
Hi Everyone Can anyone help me to understand how can we take full page screenshot including browser address bar ? I am able to take browser page screenshot but that doesn't include URL address bar
Christoph Herold
@coeamyd
I don't believe, this is possible. The rendering functionality of the browsers typically only render the pages' contents to an image, and not their chrome. I may, however, be mistaken.
Why don't you, instead, save the url in a separate metadata file, and post-process your screenshot by adding some white pixels to the top and adding the address manually?
krarpitgupta
@krarpitgupta
thanks @coeamyd yeah we can save the URL...but before that I am exploring if there is a way to include screenshot that include address bar
Christoph Herold
@coeamyd
Good luck. As I said, I believe, this is not possible. If you do prove me wrong, please post your solution :-) And good luck.
Marijana Rukavina
@mareru
@christian-bromann ok, I hope codemod will be helpful :) Would you say that sync mode can still be used with webdriverIO v7 and Node v 14 without any issues? At least for a while - until node 14 comes to end of life (2023-04-30)
Christian Bromann
@christian-bromann
yes, but I recommend to switch to async as we can’t continue supporting it with Node v16 anymore
cezarybielec-itm
@cezarybielec-itm
hi, i would like to speed up my webdriver io tests. I want to send a login request once and then get the token and set it in storage for each following test. Is there a way to do it using webdriverio features?
Christian Bromann
@christian-bromann
@cezarybielec-itm sure, you run a suite with one spec first that gets you the token and then store it in the environment and kick off all the other tests in parallel
Tuteez
@Tuteez
Guys, how to clear cash with wdio? do hard reset or something
Christian Bromann
@christian-bromann
you mean clear cache? you can use https://webdriver.io/docs/api/browser/reloadSession to get a new browser instance
Tuteez
@Tuteez
yes cache, thank you :) window.location.reload(true) works for me
Christian Bromann
@christian-bromann
really? This just reloads the page, also it has no bool parameter (https://developer.mozilla.org/en-US/docs/Web/API/Location/reload)
cezarybielec-itm
@cezarybielec-itm
@christian-bromann i got it but how do i set the token? is there a way using webdriverio features or should i go with browser.execute and javascript code?
Christian Bromann
@christian-bromann
set the token where?
Tuteez
@Tuteez

really? This just reloads the page, also it has no bool parameter (https://developer.mozilla.org/en-US/docs/Web/API/Location/reload)

'By default, the reload() method reloads the page from the cache, but you can force it to reload the page from the server by setting the forceGet parameter to true: location.reload(true)." -> https://www.quanzhanketang.com/jsref/met_loc_reload.html why here is different info?

Christian Bromann
@christian-bromann
it seems that this parameter exists indeed https://webplatform.github.io/docs/apis/location/reload/
if it works for you, then great!
cezarybielec-itm
@cezarybielec-itm
in the localStorage
Christian Bromann
@christian-bromann
use the execute command, yes
cezarybielec-itm
@cezarybielec-itm
great, thank you
cezarybielec-itm
@cezarybielec-itm
last question for today i promise :D if i call a .waitForDisplayed() on the WebdriverIO.Element is this element re-searched? or am i calling this method on the same, already found element?
Erwin Heitzman
@erwinheitzman
@cezarybielec-itm the element is refetched
or to be more exact, the whole element chain is refetched
this prevents stale element references where one of the parent elements might refresh during two actions
praveendvd
@praveendvd

capabilities: [{
"platformName": "Android",
"appium:platformVersion": "11",
"appium:deviceName": "Android Emulator",
"appium:app": "C:\Users\Downloads\app.apk",
"appium:automationName": "UiAutomator2",
"avd":"Pixel_4_XL_API_30"
}],

Hi everyone i have this appium capability , i am starting the emulator from appium automativally by passing avd parameter.

The problem is the process never exits as the emulator is attached to the cmd session, how to force cmd or ps to close once webdriverio run completes
praveendvd
@praveendvd

const {execSync} = require('child_process');

onComplete: function(exitCode, config, capabilities, results) {
execSync('adb emu kill');
}

this worked thanks
Madhan
@madhank_gitlab

Hi all,

browser.execute('window.scrollTo(0, 0)');

Is this correct way to execute js script in wdio ? I am trying to reach the top of the web page, but its not working for me. Can anyone help me on this ? Thanks

Marijana Rukavina
@mareru

Hello, I get this error in IntelliJ

TS2694: Namespace 'global.WebDriver' has no exported member 'ChromeOptions'

I am using webdriverIO v7 with Typescript and I have used WebDriver.ChromeOptions as a type, but it doesn't recognize it.
Anybody knows how to fix it?

navsterrr
@navsterrr

hello folks , been stuck a few days trying to upgrade to webdriverio v6.12.1 from v4. @wdio/local-runner is failing to launch a test session with chromedriver service -

[0-0] ERROR @wdio/local-runner: Failed launching test session: TypeError: this._framework.init is not a function.

full stack trace here - https://paste.gg/p/anonymous/a073e92424c84f79b93156d5bd99797b
confirmed the chromedriver service was started successfully. this was working with webdriverio@4.14 but failing with webdriverio@6.12.1.
Would appreciate any help on this!

my package.json - webdriverio@6.12.1, @wdio/local-runner@6.12.1, @wdio/cli@6.12.1, wdio-chromedriver-service@6.0.4

my wdio.conf.js -
services: ['chromedriver']

tsibulya12
@tsibulya12
Hi guys, I'm installing wdio v7 on a new laptop, and there package.json is not creating, can someone tell me how to fix this issue?
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\tsibu\Desktop\WDIO\package.json'
rashiq231
@rashiq231
Hello, I am new to webdriverIO, while trying to run using cucumber framework, even though the execution is happening, I see the steps are retried as if there was a failure
ERROR @wdio/local-runner: Failed launching test session: Error: Couldn't find page handle
at DevToolsDriver.getPageHandle (D:\webdriverio\test2\node_modules\devtools\build\devtoolsdriver.js:143:19) can anyone help how to resolve this?
sureshneni
@sureshneni
Hi Team, I have used below block to run my multiple specs in sequential order but browser gettitng open twice at same times, please let me know how to fix it.
suites : {
login: [
'./test/specs/login.spec.js',
'./test/specs/openNewAccount.spec.js'
]
},
openNewAccount.spec.js has to run only after login.spec.js file
BhushanKinholkar
@BhushanKinholkar
Hi all addValue is not function
I am getting this error
on webdriver io
nileshye
@nileshye
Hello All, Can we use a global variable set in wdio.config.js in all other classes like test, util etc?