Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 16:36
    mgrybyk commented #4396
  • 16:34
    mgrybyk commented #4396
  • 15:13
    BorisOsipov unlabeled #4348
  • 15:13
    BorisOsipov unlabeled #4348
  • 15:12
    BorisOsipov closed #4348
  • 15:12
    BorisOsipov commented #4348
  • 13:58
    gtilekar commented #4396
  • 13:48
    gtilekar commented #4348
  • Aug 23 20:14
    jlchereau commented #3895
  • Aug 23 19:49
    erwinheitzman commented #4394
  • Aug 23 19:43
    erwinheitzman labeled #4401
  • Aug 23 19:43
    erwinheitzman edited #4401
  • Aug 23 19:43
    erwinheitzman edited #4401
  • Aug 23 19:42
    erwinheitzman opened #4401
  • Aug 23 18:49
    luciano-bracco opened #4400
  • Aug 23 18:22
    eseakin commented #3106
  • Aug 23 18:11
    eseakin commented #3106
  • Aug 23 17:53
    mariobianco commented #4321
  • Aug 23 17:41
    anto-ac commented #3106
  • Aug 23 17:40
    anto-ac commented #3106
Xu Cao
@caoxu2000
cool. thanks @erwinheitzman :thumbsup:
so I would wrap those in a browser.execute() right?
Erwin Heitzman
@erwinheitzman
yep
Xu Cao
@caoxu2000
cool thanks!
hope it'll work
Erwin Heitzman
@erwinheitzman
you can also put the content in the table cells and then trigger the event that the frontend code is listening to
you don't want to be testing something like the clipboard itself imo
Xu Cao
@caoxu2000
yeah, I clicked on another input text area and paste out the content from clipboard
Erwin Heitzman
@erwinheitzman
you can however use the API I shared
Xu Cao
@caoxu2000
they didn't work. or I don't know how to use it
Erwin Heitzman
@erwinheitzman
@caoxu2000 in the example it says what I suggested at the start: document.querySelector(".editor").innerText += clipText
so in other words I would just do that
browser.execute((elem, clipText) => {
    elem.innerText += clipText;
}, $('some-selector', 'this is some example clip text');
Xu Cao
@caoxu2000
cool. the navigator.clipboard.readText().then(clipText => document.querySelector("textarea.add-comment").innerText += clipText); worked. now the only thing is since our app is an https, there is a permission popup asking for permissions to allow the app to access clipboard. just need to dismiss that
Erwin Heitzman
@erwinheitzman
you do not have to use the clipboard if all it does is add to the elements innerText
just do what I shared, it's the same thing
Xu Cao
@caoxu2000
let me try
Xu Cao
@caoxu2000
no it didn't
I think b/c
browser.execute(function() {
  document.execCommand("copy");
})
Erwin Heitzman
@erwinheitzman
ah nice
Xu Cao
@caoxu2000
would copy the content to clipboard
Erwin Heitzman
@erwinheitzman
can you click the element and do document.execCommand("paste"); as well?
Xu Cao
@caoxu2000
so in order to get the content from clipboard, you have to use global navigator.clipboard
no, paste didn't work
Erwin Heitzman
@erwinheitzman
strange
anyway, glad it works! :)
Xu Cao
@caoxu2000
yeah I know. I was surprised. thanks man!
Erwin Heitzman
@erwinheitzman
haha you are welcome mate, cheers! ;)
Xu Cao
@caoxu2000
bottom up :beers:
gtilekar
@gtilekar
afterStep: function (uri, feature, scenario, step, result) {
    const cucumber = require('cucumber').default;
    if (result.status === cucumber.Status.FAILED) {
        console.log("FAILED");

    }
},    
I am trying to read step result in afterstep. but it says result.status is undefined. using version "@wdio/cucumber-framework": "^5.12.3"
gtilekar
@gtilekar
@jlin-namely check the correct format on this thread wswebcreation/wdio-cucumberjs-json-reporter#10
Erwin Heitzman
@erwinheitzman
@gtilekar what if you log result, what does it return?
gtilekar
@gtilekar
it prints undefined
Erwin Heitzman
@erwinheitzman
@gtilekar checkout webdriverio/webdriverio#4396
Tiago Pedro
@tmjpedroqa_twitter

hey there, quick question. i'm using chrome 76. so i have the error TypeError: browser.positionClick is not a function

i need to replace it using perform actions like:

await browser.performActions([
        {
          type: 'pointer',
          id: 'mouse',
          actions: [{"type": "pointerDown", "button": 0},{"type": "pointerUp", "button": 0}]
        }
      ]);
that click assumes the actual mouse position?
Tiago Pedro
@tmjpedroqa_twitter
seems i need to do the moveTo on actions object as well
jonathan terry
@jonyet
anyone else here hit this wdio-chromedriver-service bug? atti187/wdio-chromedriver-service#26
i'm in the process of updating/auditing my package, which will never not sound ridiculous
and i think this seems to be the last holdout of all the updating
basically just boils down to tests failing to initiate because 'session not created: Chrome version must be between 71 and 75\n (Driver info: chromedriver=2.46.628411 (3324f4c8be9ff2f70a05a30ebc72ffb013e1a71e),platform=Mac OS X 10.14.5 x86_64)',
or if anyone else here has recently done a dependency audit & update and isnt having this issue, i'd love to compare some versions
Erwin Heitzman
@erwinheitzman
@tmjpedroqa_twitter just use element.click()
@jonyet I haven't heard of anyone running into that before
USB-internet
@USB-internet
image.png
please help me, When I use the mouse to click on the image 7, it becomes the main image
but when $('[data-id="7"]').click(); then error
when I use the mouse and click the image 7 becomes the Main Image but using webdriverio it fails
USB-internet
@USB-internet
@@ help me !!!