by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 08:59
    christian-bromann closed #5875
  • 08:59
    christian-bromann commented #5875
  • 08:57
    christian-bromann labeled #5875
  • 08:56
    christian-bromann commented #5876
  • 08:54
    SkylerGrail commented #5876
  • 08:50
    christian-bromann commented #5876
  • 08:42
    mgrybyk closed #5876
  • 08:42
    mgrybyk commented #5876
  • 08:38
    SkylerGrail opened #5876
  • 08:06

    christian-bromann on v6.5.2

    update deps v6.5.2 (compare)

  • 08:05

    christian-bromann on master

    update deps v6.5.2 (compare)

  • 08:05

    christian-bromann on v6.5.2

    (compare)

  • 07:26
    khyati2010 opened #5875
  • 01:54
    jags14385 commented #5668
  • Sep 17 17:42
    alecf opened #5874
  • Sep 17 16:22
    takeya0x86 commented #5380
  • Sep 17 15:31
    codecov[bot] commented #3708
  • Sep 17 15:31
    codecov[bot] commented #3148
  • Sep 17 15:31
    codecov[bot] commented #5040
  • Sep 17 15:25
    jsf-clabot commented #5873
umairnazeer
@umairnazeer
hi, is anyone here running tests on firefox? I am having a hardtime setting it up. I have installed wdio-geckodriver-service and geckodriver but still not able to run it. I tried firefox profile and geckodriver as a service too
Kriskof
@Kriskof
does anyone know how to run percy in sync mode? I can just remove async/await and still have it run but it doesn't take a snapshot when I do
umairnazeer
@umairnazeer
can anyone help me setting up firefox without using browserstack or any other services?
Olga
@osmolyar
@umairnazeer , it works for us using @wdio/selenium-standalone-service and the following config in wdio.config:
services: [ // Make sure @wdio/selenium-standalone-service installed
        ['selenium-standalone', {
            logPath: 'logs',
            installArgs: {
                drivers: {
                    chrome: { version: '81.0.4044.69' },
                    firefox: { version: '0.26.0' },
                    // edge: {version: '81.0.409.0'}, //doesn't install correct version and doesn't let you sub in correct driver renamed as grid does
                    ie: {
                        version: "3.5.1",
                        arch: process.arch,
                        baseURL: "https://selenium-release.storage.googleapis.com"
                    },
                    edge: {
                        binary: path.join(__dirname, 'msedgedriver.exe') // has to be absolute
                        // binary: "C:\drivers\msedgedriver.exe"
                    }
                }
            },
            args: {
                drivers: {
                    chrome: { version: '81.0.4044.69' },
                    firefox: { version: '0.26.0' },
                    // edge: {version: '81.0.409.0'} //doesn't install correct version and doesn't let you sub in correct driver renamed as grid does
                    ie: {
                        version: "3.5.1",
                        arch: process.arch,
                        baseURL: "https://selenium-release.storage.googleapis.com"
                    },
                    edge: {
                        binary: path.join(__dirname, 'msedgedriver.exe') // has to be absolute
                        // binary: "C:\drivers\msedgedriver.exe"
                    }
                }
            },
        }]
    ],
2 replies
Orane Findley
@ofindley

Hey everyone,

Is this the equivalent of waiting for an element to not exist? It is not working as expected.

element.waitForExist({ reverse: true })
wdio version - 5.22.1

Kriskof
@Kriskof
yes, I use it for wdio v6 and it works just fine
not sure about v5 but just make sure you define the element properly
Orane Findley
@ofindley
Yes I can perform other actions on the element
Kriskof
@Kriskof
I have mine like this
waitLoad() { this.pleaseWait.waitForExist({reverse: true, timeout: 50000}); }
and then I call waitLoad() wherever I need it
Orane Findley
@ofindley
It gives me the error element xyz still not existing after 10000ms
Kriskof
@Kriskof
did it exist before and then afterwards it doesn't exist and then show error?
Orane Findley
@ofindley
yes
Kriskof
@Kriskof
hmm that's weird
maybe a bug for v5
Kriskof
@Kriskof
so after spending hours trying to get percy to work synchronously cause I couldn't figure out how to do async on POM, the workaround which is a hack is by putting your percySnapshot sychronously on your test cases and then adding a final async snapshot at the bottom
image.png
JI
@J-JRC
Hey Everyone
Is it a known issue that moveTo function does not work on Safari? is there any workaround?
I have tried to use dispatchEvent with custom command, but it did not work
I am using webdriverIO 5.18.6, Safari 13.1
This is what I put in the custom command
  browser.execute(
    function(selector) {
      var targetNode = document.querySelector(selector);
      var hoverEvent = new MouseEvent("mouseover", {
        bubbles: false,
        cancelable: true
      });  
      targetNode.dispatchEvent(hoverEvent);
    },
    selector
  );
Sean El-Sayed
@seanuleh

Is there a way to wrap all element commands? I have an issue with a single browser where I randomly get a popup complaining about certs. The Browser is Win7 IE11, and the implication is that the element commands generate a /execte W3C request which will occasionally return a HTTP 500. I would like to wrap the commands and try to catch this specific error and force a retry. Unfortunately, dealing with the underlying cert issue is not possible and this seems to be the easiest option I can think of. I can wrap all my tests in a try-catch to handle it, but that is a lot of rework as I will have to change every test.

The specific error looks like this in selenium logs:
17:48:55.280 DEBUG - sun.net.www.MessageHeader@b6db216 pairs: {null: HTTP/1.1 500 Internal Server Error}{Content-Length: 235}{Content-Type: application/json; charset=UTF-8}{Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept}{Accept-Ranges: bytes}{Connection: close} 17:48:55.281 INFO - To downstream: {"sessionId":"91146b96-7c25-4d1c-a679-063c4683dfae","status":26,"value":{"alert":{"text":"Revocation information for the security certificate for this site is not available. Do you want to proceed?"},"message":"Modal dialog present"}}

The modal seems to be dismissed or accepted immediately since in my testing, there are no other window handles available when this happens. It just causes some tests to bomb out unnecessarily. Open to any other ideas on how to handle this, but I think the easiest way is to add a try-catch around the test and retry on this specific error. But I do not want to override each element command individually.

Sean El-Sayed
@seanuleh
To those interested, I solved by writing a generic overwrite function and registered it to multiple overwrite commands:
  /* Overwrite default element command behaviour to fix IE issues */
  function overwriteFunction(origFunction, ...args) {
    try {
        // attempt to execute Original function
        return origFunction(...args);
    } catch (err) {
        if (err.message.includes('Modal dialog present')) {
            console.warn('WARN: Element', this.selector, 'threw an error and we are retrying.')
            return origFunction(...args);
        }
        throw err
    }
  };
  browser.overwriteCommand('scrollIntoView', overwriteFunction, true);
  browser.overwriteCommand('$', overwriteFunction, true);
  browser.overwriteCommand('getAttribute', overwriteFunction, true);
  browser.overwriteCommand('getText', overwriteFunction, true);
  browser.overwriteCommand('getLocation', overwriteFunction, true);
GYANENDRA PANDEY
@gyanendrapmca
I'm unable to send value in textbox using setValue method, how to perform this action- driver.getKeyboard().sendKeys("textToBeTyped"); ??
Daljit Singh
@daljit08_gitlab
if am creating config file and its asking me "? Do you want to run WebdriverIO commands synchronous or asynchronous? async" and in my test i use async and await. but in my config files it does not mentioned that it should run in synchronous or asynchronous way. So how webdriver know ?
GYANENDRA PANDEY
@gyanendrapmca
@daljit you can set manually sync: true or async: true
26 replies
GYANENDRA PANDEY
@gyanendrapmca
in this scenario, how to setvalue in edittext????? anyone please help me....
Erwin Heitzman
@erwinheitzman
setValue | keys command?
GYANENDRA PANDEY
@gyanendrapmca

setValue | keys command?

It's not working, due to keyboard enabled here- i faced same issue in appium/java also and resolve using this- driver.getKeyboard().sendKeys("jschwartz"); But, i didn't found anything here, how to handle this thing.

6 replies
Avikash Gorka
@avikashg

image.png

Nested describe blocks have an extra entry in the mocha reports

Ranjith Samalla
@Ranjithsamalla
HI
image.png
Im getting this error white running script in android mobile can any one help what is cause here
Avikash Gorka
@avikashg
Hi, just started using webdriverio.
I am having issues in nested describe blocks.
nitinWFH
@nitinWFH
hi
matrixbot
@matrixbot
swindlerabbit what issues?
nitinWFH
@nitinWFH
is there a way to connect to AWS s3 bucket and copy files
on local
how to connect thorugh wdio
Simon Wilson
@simonwilson1985

Hi all, I am having some issues with modals in headless chrome not working properly. As a test I set this up:

describe("test", function() {
    it("test", function() {
        browser.url("https://getbootstrap.com/docs/4.3/components/modal/");
        browser.debug();
    })
})

if I take a screenshot of that page then I just get a blank page. However, in non-headless mode it works fine.
Any ideas?

Christian Bromann
@christian-bromann
@avikashg would be great if you could explain the issues you are having
4 replies
@Ranjithsamalla seems that your Appium setup is not correct
@nitinWFH can you explain what you want to “connect”?
Simon Wilson
@simonwilson1985
nitinWFH
@nitinWFH
thanks Simon..
i want to connect to AWS S3 bucket and copy csv files to local machine for further processing
matrixbot
@matrixbot
swindlerabbit Avikash Gorka (Gitter): I had the same issue with mochawesome after upgrading to wdio 5 it doesn't seem like nested describes work properly anymore.
Simon Wilson
@simonwilson1985
@nitinWFH there's documentation in there and on AWS page that explains how to do this
nitinWFH
@nitinWFH

@nitinWFH there's documentation in there and on AWS page that explains how to do this

ok, can you share any link

nitinWFH
@nitinWFH
Caleb Jaquith
@calebjaquith_twitter

Is this warning suppressable?

[0-0] RUNNING in chrome - /tests/specs/basic.js
[0-0] Warning! Unsupported expect lib is used.
Only Jasmine >= 3.3.0 and Jest's expect are supported.
expect-webdriverio is assigned to global.expectWdio

I imagine if I let the native assertion library use expect that'd be fine, but I like using that instead of chai.expect

4 replies
harismahesh
@harismahesh_twitter
Appium with webdriverio I am getting following errors. Any idea why its coming ?