Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 28 20:06
    jaFerrazza commented #4980
  • Jan 28 19:34
    wswebcreation closed #4980
  • Jan 28 19:34
    wswebcreation commented #4980
  • Jan 28 18:02
    Travis aduggirala/webdriverio (master) errored (42)
  • Jan 28 17:42
    jaFerrazza opened #4980
  • Jan 28 16:37
    erwinheitzman commented #4979
  • Jan 28 13:04
    wazp commented #4979
  • Jan 28 08:46
    Shreya76 commented #269
  • Jan 28 06:19
    BorisOsipov commented #4979
  • Jan 27 22:51
    wazp opened #4979
  • Jan 27 21:41
    Madebyspeedster commented #486
  • Jan 27 21:40
    Madebyspeedster commented #486
  • Jan 27 21:40
    Madebyspeedster commented #486
  • Jan 27 17:10
    codecov[bot] commented #4930
  • Jan 27 17:10
    baruchvlz edited #4930
  • Jan 26 11:54
    codecov[bot] commented #4978
  • Jan 26 11:54
    christian-bromann labeled #4978
  • Jan 26 11:54

    christian-bromann on default

    (compare)

  • Jan 26 11:54

    christian-bromann on master

    Update mocha in group default t… (compare)

  • Jan 26 11:54
    christian-bromann closed #4978
DikshaBaluja
@DikshaBaluja
@erwinheitzman So apparently , if it tries to search the element after the save , it doesnt get displayed and fails..
Baha
@hijazi
thanks @erwinheitzman :)
Erwin Heitzman
@erwinheitzman
@DikshaBaluja in the code example you do not execute the save so is the example incomplete?
@vmpr_cmptr_ppl_twitter are you using vscode?
Drew K
@vmpr_cmptr_ppl_twitter
@erwinheitzman yes i am, so i guess i would need launch.json example and maybe something else
other config tweaks required or packages?
Erwin Heitzman
@erwinheitzman
@vmpr_cmptr_ppl_twitter then it is really easy, press CMD + SHIFT + P (CTRL + SHIFT + P on Windows) and type attach and toggle auto attach
then what I do is I pass an environment variable when I want to debug
and I do this:
exports.config = {
  // ...
  execArgv: process.env.DEBUG ? ['--inspect-brk=127.0.0.1:5859'] : [],
  // ...
}
then you can use the build-in debug tool of vscode
Drew K
@vmpr_cmptr_ppl_twitter
ok, so normal configuration in vscode plus ensure i set --inspect-brk=127.0.0.1:5859 and auto attach
Erwin Heitzman
@erwinheitzman
and breakpoints
yes
Drew K
@vmpr_cmptr_ppl_twitter
then run from debugger
very cool, will try!
Erwin Heitzman
@erwinheitzman
correct
Drew K
@vmpr_cmptr_ppl_twitter
thanks so much
Erwin Heitzman
@erwinheitzman
you are welcome
Drew K
@vmpr_cmptr_ppl_twitter
@erwinheitzman you are a hero, thanks for your help over the months and your work on this great tool
Erwin Heitzman
@erwinheitzman
@vmpr_cmptr_ppl_twitter thanks a bunch! that is very kind :)
Dmitrijs Balcers
@dmitrijs-balcers

Hello People!

Has anyone tried to use AWS Device farm with Webdriver.IO? Is there any good guide that would explain how to do that?

Dmitrijs Balcers
@dmitrijs-balcers
Should I create a new service package, or there should be any simplier way?
Dmitrijs Balcers
@dmitrijs-balcers
Kristaps
@Dorkstars
Hello. Have anyone had issues, that Sauce Labs Android emulator opens page with Desktop layout?
Checked the same with iOS simulator, that works correctly.
Tom Fottinger
@FottingerTom_twitter
I am testing an Android mobile application, using the Appium UiAutomator2. The Appium desktop is providing the following information for the selected element. Find By: id, Selector: ‘name’. I can not find information on mobile selectors using id (i.e. resource-id). I have tried $('#name’) and $(//*[@id=“name”]’), even $’(~name’), but none of them work for me. Can someone help?
Tom Fottinger
@FottingerTom_twitter
It okay, I resolved it. $('//android.widget.EditText[@resource-id="name"]')
sudheertest
@sudheertest
Any tutorial, or guidance on debugging webdriverIO code with breakpoints in Webstrom please.
CutieDarkFae
@CutieDarkFae
@erwinheitzman 4.05GB disk free
sudheertest
@sudheertest
@erwinheitzman Any help to debug with breakpoints in webstrom please
Leo Li
@yuxli066
can i run browser.call in the afterScenario hook?
or any after hooks?
Leo Li
@yuxli066
it seems like I can't make any asynchronous calls in any of my after hooks using cucumberJS v5
DikshaBaluja
@DikshaBaluja
Hi @erwinheitzman For the file upload issue , I tried with addValue instead of setValue and it worked :)
DikshaBaluja
@DikshaBaluja
Is it also possible to use a relative path when uploading the file ?
vinilnarayan
@vinilnarayan

Hi,

Below is my wdio5 code…

let pageObject;
var path = '../src/target/page_objects';
class pageName {
  visit(page) {
    pageObject = require(`${path}/${page}`);
    global.pageObject = pageObject;
    const elem = $('body');
    elem.waitForDisplayed();
  }
}
module.exports = new pageName();

with this I’m getting an error
Cannot find module '/src/target/page_objects/home’

I’m passing ‘page’ as ‘home’…

Can anyone tell y this error triggers.. Path is correct actually.

actual path : /Users/vinil/WorkSpace/NewApproach/TestProject/src/target/page_objects/home.js

Erwin Heitzman
@erwinheitzman
@CutieDarkFae I believe that Chromedriver tries to write a log file of a few gigabyte but I might be wrong. I have seen before that it cannot write a file like that and it might be related but I might be wrong as well
@sudheertest I have never worked with Webstorm
@DikshaBaluja not sure but only one way to find out, just try it out :) and yeah the setValue doesn't work, I forgot about that
DikshaBaluja
@DikshaBaluja
@erwinheitzman I tried and it threw the error , path is not absolute
But if I try something like this..
fileUpload("//input[@id='files']",__dirname+'/'+results[i].FileName);
It works , with reference to current directory
we could also use some other directory ??
Erwin Heitzman
@erwinheitzman
The dirname returns an absolute path I believe @DikshaBaluja
So it seems that as long as it's an absolute path you are good
DikshaBaluja
@DikshaBaluja
@erwinheitzman yep..
earlier I was trying './Files/image.jpg' Files is a folder in the root directory
yes , but could it be a different directory other than the current one?
Erwin Heitzman
@erwinheitzman
@vinilnarayan it is probably just a path mistake which we cannot tell you as we don't know your folder structure. And rather I think it is a very bad design to use require like that. Instead create the method on the pages
Erwin Heitzman
@erwinheitzman
@DikshaBaluja I would think that it can be any directory
vinilnarayan
@vinilnarayan
thank you @erwinheitzman
Wojciech Wieczorek
@Vojow95
Hello, in wdio v5 is there a way to rotate the mobile browser from within the test, or do I need to provide separate conf file for this case ?
Wojciech Wieczorek
@Vojow95
or even how to do it with mobile browser emulation (not the Appium) ?