Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 17 21:27

    christian-bromann on main

    Support Firefox 86+ in Devtools… (compare)

  • Jun 17 21:27
    christian-bromann closed #7027
  • Jun 17 21:27
    christian-bromann labeled #7027
  • Jun 17 18:38
    dylanlive opened #7027
  • Jun 17 14:47
    NIBOSAP commented #7005
  • Jun 17 13:21
    esaari commented #7019
  • Jun 17 12:36
    christian-bromann labeled #7026
  • Jun 17 12:36
    christian-bromann labeled #7026
  • Jun 17 12:36
    christian-bromann commented #7026
  • Jun 17 11:57
    nextlevelbeard edited #7026
  • Jun 17 11:48
    nextlevelbeard opened #7026
  • Jun 17 11:33
    christian-bromann commented #7019
  • Jun 17 10:25
    christian-bromann synchronize #7019
  • Jun 17 10:25

    christian-bromann on upgrade_lighthouse_dependencies

    updates necessary deps to get l… wip - importing new lighthouse … import definitions and 8 more (compare)

  • Jun 17 10:20
    christian-bromann synchronize #7020
  • Jun 17 10:20

    christian-bromann on cb-stabilise-coverage-transform

    wrap coverage transform into tr… (compare)

  • Jun 17 09:55
    christian-bromann commented #2508
  • Jun 17 09:53

    christian-bromann on main

    stabilise e2e protocol tests (compare)

  • Jun 17 09:48
    YashMonetate commented #2508
  • Jun 17 09:22
    christian-bromann closed #6977
Xatabch
@Xatabch
Hello everybody! Please tell me, I select the input $ ('. Input') element with audio, do addValue for it and then do the same actions, but 3 files are loaded, the feeling that the input is not cleared
Raziel Alron
@razielron
use setValue instead
Xatabch
@Xatabch
an error occurs element is not interactable
Raziel Alron
@razielron
can you share the code you are using to do that?
Xatabch
@Xatabch
let input = $('.input');
browser.uploadFile(somePathToFile)
input.addValue(somePathToFile)
4 replies
and then repeat
Akamel
@Amrkamel1

Hi there, which js function i can trigger to execute the test instead of using npx wdio conf.js through terminal

I was trying something like

const wdio = require("@wdio/cli");
await wdio.run(config);
but got the following
image.png
not sure if what i should pass inside .run()
cpeck-bi
@cpeck-bi
krarpitgupta
@krarpitgupta
Hi Guys need your help I am using Cucumber + WebdriverIO v7 surprisingly
Then('I wait for {string} to not displayed', (elementInfo) => {
is recognized but when we are specifying like this
Then('I wait for {string} to (be|not) (clickable|displayed|enabled|exist)', (elementInfo, falseCase, condition) => {
It's not recognized getting following error Step "I wait for "SpinnerImage" to not displayed" is not defined. You can ignore this error by setting cucumberOpts.ignoreUndefinedDefinitions as true
Can anyone please help, I am having difficult time to understand what I am missing here ?
cpeck-bi
@cpeck-bi
@karpitgupta well, I am assuming you have accounted for that use case -- IE you have some step that should be running for that combination of arguments?
krarpitgupta
@krarpitgupta
@cpeck-bi May I know what I am missing here ?
I don't have any other step, I am in phase of building the things
cpeck-bi
@cpeck-bi
what does the step definition code look like, if you can share?
krarpitgupta
@krarpitgupta
Here it's

Then('I wait for {string} to (be|not) (clickable|displayed|enabled|exist)', (elementInfo, falseCase, condition) => {

let selector = lib.getSelector(elementInfo);
console.log("elementInfo : " + elementInfo);
console.log("falseCase : " + falseCase);
console.log("condition : " + condition);
lib.waitFor(selector, waitTimeout, true, `Timeout Occur : Spinner is displayed even after ${waitTimeout} ms`);

});

@cpeck-bi FYI
Here is the step in my feature file :
Then I wait for "SpinnerImage" to not displayed
However It works if I specify step like this : Then('I wait for {string} to not displayed', (elementInfo) => {
cpeck-bi
@cpeck-bi
how long is the waitTimeout generallly?
krarpitgupta
@krarpitgupta
It's 20000 ms
even If I comment lib.waitFor statement still step is not recognizable
krarpitgupta
@krarpitgupta
@cpeck-bi Any idea what I am missing here ?
For me it looks so strange
cpeck-bi
@cpeck-bi
you're not actually using the condition parameter are you?
or the falseCase?
krarpitgupta
@krarpitgupta
I am using
@cpeck-bi
Akamel
@Amrkamel1

@Amrkamel1 you can find the syntax here https://webdriver.io/docs/clioptions/#run-the-test-runner-programmatically

thank you so much its working now

Johnson E
@jonn-set
Hi, can someone help me with this issue please? https://github.com/webdriverio/webdriverio/discussions/6688

Copying this problem here:

We are using browser.mock() to spy on non XHR calls and we have situation where we need to do a browser.sessionReload() which causes browser.mock() to stop working on any new window opened. Is this is expected? And is there a workaround to this? We cant use clearCookies() as we have multiple applications and the clearing cookies at the end only clears cookies of the last opened domain.

Raziel Alron
@razielron
does anyone knows which version of Jasmine does wdio uses?
tobeliketree
@tobeliketree

My team keeps running into performance metrics errors when trying test the loading of an image gallery that first requires authentication first. The actual error is

[0-0] LHError in "Testing the performance of a specific core library gallery with 50 assets. Should open and get the performance metrics from core library gallery with 50 assets" LHError: NO_TTI_NETWORK_IDLE_PERIOD at Function.findOverlappingQuietPeriods (/Users/tree/Git_Repositories/performance/node_modules/lighthouse/lighthouse-core/computed/metrics/interactive.js:136:11) at Function.computeObservedMetric (/Users/tree/Git_Repositories/performance/node_modules/lighthouse/lighthouse-core/computed/metrics/interactive.js:165:41) at Function.compute_ (/Users/tree/Git_Repositories/performance/node_modules/lighthouse/lighthouse-core/computed/metrics/metric.js:65:21) at Browser.next [as getMetrics] (/Users/tree/Git_Repositories/performance/node_modules/@wdio/utils/build/monad.js:95:33)

Does anyone have any help on this and what LHError or NO_TTI_NETWORK_IDLE_PERIOD means and how I adjust a rather simple metrics test? . My test couldn't be any simpler and the util metrics function is gathering all available metrics results the wdio performance audits offers

 before(function(){
        browser.enablePerformanceAudits(); 
        const userVariables = tv.config.coreUserCredentials.
            sauce[sanitizedCapabilities.getBrowserOSName()];
        CoreImagesLeftPane.open(library);
        LoginPage.submitCoreLogin(userVariables.username, 
            userVariables.password);   
        CoreImagesLeftPane.clickListedTab();
    });

    after(function() {
        browser.disablePerformanceAudits();
    });

    it('Should open and get the performance metrics from core library gallery with 50 assets', function () {
        CoreImagesLeftPane.openCollectionOrGallery(fiftyImageGallery); 
        util.getPerformanceData();
    });
Erwin Heitzman
@erwinheitzman
@razielron you can check the version in the package.json of the jasmine framework service
7 replies
@jonn-set someone already replied and asked the question with a good reason as this issue should probably be resolved in v7
Johnson E
@jonn-set
@erwinheitzman thanks, is the upgrade from 6 to 7 non breaking?
Scott Mac Donald
@Corinos
Hey folks, does anyone have a tool for testing WDIO selectors? I have chained selector that seems to work with each part on their own in the console, but since the console doesn't let me use chained selectors the same way, I can't test the whole thing, and when I run WDIO using that selector, i get an unexpected return.
Is the a browser extension or anything that I could use?
Akamel
@Amrkamel1
is there any updates regarding the multi remote issue
    Error: Invalid or unsupported WebDriver capabilities found ("protocol", "hostname", "port", "path"). Ensure to only use valid W3C WebDrive
Christian Bromann
@christian-bromann
there is a PR that will be merged and released soon
fedoseevGIT
@fedoseevGIT
Hello everyone) Does anyone use restarting tests through the Re-run-service? After passing the tests, a sh file is generated to re-run the tests, but I do not quite understand where to call it. When I insert the execution of this file into the OnComplete hook, the process is automatically killed after a while and the tests are not restarted.
kfir ben hamou
@kfirbhCS
Anyone knows if video reported is fully sported on version 7 ?