People
Repo info
Activity
  • 15:24
    wildaces215 commented #2889
  • Oct 06 19:48
    wildaces215 commented #2889
  • Oct 05 20:39
    Travis webdriverio/webdriverio (v4) failed (2585)
  • Oct 05 20:38
  • Oct 05 20:16
  • Oct 05 20:13
    simongranger commented #2987
  • Oct 05 20:11

    christian-bromann on v4

    IE Returns `405` message Selen… Update utilities.js Update utilities.js and 1 more (compare)

  • Oct 05 20:11
    christian-bromann closed #2990
  • Oct 05 20:08
    BorisOsipov closed #2988
  • Oct 05 20:08
    BorisOsipov commented #2988
  • Oct 05 19:55
    emilyrohrbough synchronize #2990
  • Oct 05 19:55
  • Oct 05 19:45

    BorisOsipov on master

    wdio-allure-reporter: added Iss… (compare)

  • Oct 05 19:45
    BorisOsipov closed #2989
  • Oct 05 19:45
    codecov[bot] commented #2862
  • Oct 05 19:45
    codecov[bot] commented #2989
  • Oct 05 19:45
    jsf-clabot commented #2990
  • Oct 05 19:45
    BorisOsipov review_requested #2989
  • Oct 05 19:45
    jsf-clabot commented #2990
  • Oct 05 19:45
    emilyrohrbough opened #2990
USB-internet
@USB-internet
How to push multiple characters into an element without having to setvalue one by one ?
USB-internet
@USB-internet
It looks like set value of multi characters is impossible because it takes too much time, 20000 characters lose 300s
amarnath kolla
@AmarKolla1_twitter
No, it works that way I believe
Wim Selles
@wswebcreation

@USB-internet

It looks like set value of multi characters is impossible because it takes too much time, 20000 characters lose 300s

Why 20000 chars?

Is it for web or for native?
and what is the intent of the testcase?
Andrejs
@andrcuns
I believe it's how webdriver fills in input, it has nothing to do with wdio. Don't make silly test cases filling 20000 chars inside input field and everything will be fine :D maybe using browser.execute() and doing it via js could solve the issue
Wim Selles
@wswebcreation
:+1: for the answer!
kinsebr
@kinsebr
Hey @woolter, I tried implementing your code into my wdio.conf.js file, to push the diff screenshot from wdio visual regression to the allure report upon failure. However, I'm getting an error 'TypeError: allureReport.createAttachment is not a function'. Any ideas what I might be missing?
Andrejs
@andrcuns
All you should need is something like this:
const reporter = require("wdio-allure-reporter");
reporter.createAttachment("AttachmentName", buffer_of_image, "image/png");
if it complains about not a function, check if allure reporter is required correctly
Thun
@Thunn_gitlab
Hi guys, any of you got hit by this problem: on windows, i'm setting the chrome browser in emulation mode and doing a click on a button, its working fine ....but on mac when i try the same test, it fails ...if i go in debug mode on mac and try to click the button it works, but when rolling the test the webdriver says that it clicked the button but in reality it didn't
himalbandara84
@himalbandara84
hey guys cant we use jquery in side of the browser.execute()
Wim Selles
@wswebcreation

@himalbandara84

Yes you can, but why would you?

browser.execute() just injects JS in the browser so you can inject everything you want
himalbandara84
@himalbandara84
because i cant locate element via css because i need to hit direct element by value @wswebcreation
Wim Selles
@wswebcreation
ok, but why use jQuery, it that on you page?
himalbandara84
@himalbandara84
do you know any way we can locate element by value in css
because some of webdriverIO command not working in all 3 browsers(firefox , chrome and safari)
so to avoid that issue we are going browser.execute
Wim Selles
@wswebcreation
@himalbandara84
What is not working and are you getting an error?
Michal Matyjek
@mkj28
Anyone has experience trying to run webdriverio with as little memory as possible? Even in Chrome headless all the processes together use ~500MB with single test running inside docker. That's between node, java (selenium standalone chromedriver), and chrome itself.
himalbandara84
@himalbandara84
@wim
@wswebcreation view port issue
DevKhaira
@DevKhaira
has anyone had any issue with running webdriverio with jenkins, the command wdio hangs.
Andrejs
@andrcuns
jenkins is a very wide statement, it can be literally almost any OS and setup underneath
we do it, everything works as it supposed to
n111391
@n111391
@all , facing driver.moveToObject is not a function error on using following code driver.moveToObject(By.id('SolutionsCheck'),40,50);
could some one help me
Andrea
@SchnuWu_twitter

How can I use the Chai Assertion Library? I install Chai about the package.json:

  "devDependencies": {
    "chai": "*", ...

But if I run my test I get the error: assert is not defined

n111391
@n111391
@n111391
@all , facing driver.moveToObject is not a function error on using following code driver.moveToObject(By.id('SolutionsCheck'),40,50);
could some one help me
Stephen Greener
@sgreener
this update to edge is causing me some issues :/ can you specify to use local install of webdriver for edge in the conf.js used by wdio?
Stephen Greener
@sgreener
figured it out...
seleniumArgs: {
        javaArgs: [
            '-Dwebdriver.edge.driver=C:\\Windows\\System32\\MicrosoftWebDriver.exe'
        ]
    },
Stephen Greener
@sgreener

whats wrong with ...

browser.element('//ul[@id="select2-EmploymentRoles_JobTitle-results"]').isExisting();

Fails in edge not in chrome, firefox or IE11!

Stephen Greener
@sgreener

however...

browser.element('#select2-EmploymentRoles_JobTitle-results').isExisting()

is fine

sgreener @sgreener murders edge
Oren Mizrahi
@orenmizr

problem: jenkins run command test:grid but causes specs to run twice. Cant figure out WHY
i have 2 conf: normal plus grid with added props

    "test:grid": "node_modules/.bin/wdio wdio.conf.grid.js --suite grid",
var merge = require('deepmerge');
var wdioConf = require('./wdio.conf.js');

exports.config = merge(wdioConf.config, {
  // GRID
  host: 'SOME IP',
  port: 4444,
  // path: '/wd/hub',
  suites: {
    grid: [
      './__tests__/specs/etr.spec.js'
    ]
  },
  debug: false,
  execArgv: null,
  capabilities: [
    { 'browserName': 'chrome'}
  //   // { 'browserName': 'firefox' }
  //   // { 'browserName': 'internet explorer' },
  //   // { 'browserName': 'edge' }
  ]
}, {
  clone: false
});

the other wdio config is boiler plate.

deepakjune17
@deepakjune17
Is there any possibility of clearing cache of chrome/firefox browser?
Andrejs
@andrcuns
browser.deleteCookie() should do the trick
Stephen Greener
@sgreener
Bingo -> https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/19224420/
I guess that is why edge xpath thingy not working
serut
@serut
Hello ! I would like to know a little bit more about the wdio screenshot strategy.
As we saw last wednesday, I need for my react app to use a lot of waitUntil with inside some try catch when I manipulate the DOM.
However, every time an exception is raised, whether it is catched by me or not, it creates a screenshot. Can I do something to keep only usefull screenshots ?
abjerstedt
@abjerstedt
@andrcuns @deepakjune17 shouldn't we also delete the session storage if we truely want to clear the cache?
Andrejs
@andrcuns
well, since I have been testing UI, for me it has been enough to clear all cokies, but sure, you can clear local storage as well if needed, wdio provides a method for that as well
abjerstedt
@abjerstedt
It depends on what they are trying to accomplish, for example of there is concern about cached assets or css... clearing the cookies won't accomplish it.
Andrejs
@andrcuns
then additionally one just needs to call this as well :) browser.localStorage('DELETE');
abjerstedt
@abjerstedt
;)
tnypxl
@tnypxl
@andrcuns Thanks for the insight about using constructors to store elements... very helpful!
Andrew Bertoni
@drewcif3r_twitter
@SchnuWu_twitter did you import assert and/or expect from Chai in your test script?
import {assert} from "chai";
import {expect} from "chai";
const a = 1;
const b = 1;
assert.isTrue(a === b);
expect(a).to.equal(b);
kinsebr
@kinsebr
hey @andrcuns thanks for your reply. I checked the require and it was all good, but still couldn't find the createAttachment() function. Realised when I went looking in the module, that it wasn't in "wdio-allure-reporter": "0.1.2", so changed to "0.5.0" and this function is available
Tim Oien
@toien44
the best way to use different parameters depending on testcase is to use multiple config files? But then doesn't it get crazy with all the different config files?