by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 28 22:13
    christian-bromann synchronize #5840
  • Sep 28 22:13

    christian-bromann on cb-rewrite-wdio-logger

    update deps @wdio/logger: always pick Node.… fix rootDir dilemma (compare)

  • Sep 28 21:50
    christian-bromann synchronize #5840
  • Sep 28 21:50

    christian-bromann on cb-rewrite-webdriver-typegeneration

    (compare)

  • Sep 28 21:50

    christian-bromann on cb-rewrite-wdio-logger

    Rewrite type generation script … (compare)

  • Sep 28 21:50
    christian-bromann closed #5888
  • Sep 28 21:50
    christian-bromann commented #5888
  • Sep 28 12:00
    christian-bromann labeled #3407
  • Sep 28 12:00
    christian-bromann labeled #4709
  • Sep 28 12:00
    qaschevychelov commented #5867
  • Sep 28 12:00
    christian-bromann labeled #4869
  • Sep 28 11:59
    christian-bromann labeled #5444
  • Sep 28 11:59
    christian-bromann labeled #5239
  • Sep 28 11:58
    christian-bromann labeled #4484
  • Sep 28 11:58
    christian-bromann commented #5807
  • Sep 28 11:57
    christian-bromann labeled #5789
  • Sep 28 11:57
    christian-bromann labeled #5476
  • Sep 28 11:57
    christian-bromann labeled #5828
  • Sep 28 11:57
    christian-bromann labeled #5827
  • Sep 28 11:57
    christian-bromann labeled #5826
Christian Bromann
@christian-bromann
if a command fails for some reason (assertion failed) it should make a screenshot before printing the error
@rjakobsson since you already opened that issue, let’s continue convo there
Robin Jakobsson
@rjakobsson
@christian-bromann ok!
Krishna Rajendran
@blazzy
When I use the mocha framework with the wdio test runner is there a way to pass additional command line flags or options to mocha?
If you want to define specific Mocha settings you can do that by adding mochaOpts to your configuration file
Not sure how I missed that on my first pass :point_up:
Christian Bromann
@christian-bromann
:+1:
Christian Bromann
@christian-bromann
hey peeps, I am gonna go on vacation for one week without any digital devices. I won’t able to answer questions until next friday. Cheers
Eli White
@TheSavior
Any ideas what might cause
Exception thrown
org.openqa.selenium.remote.SessionNotFoundException: Session ID is null. Using WebDriver after calling quit()?
Dan Dascalescu
@dandv
Enjoy, @christian-bromann !
Miguel Rivera
@miguelrivera
@christian-bromann has #215 been resolved? It's closed, but the bug's still there
csoete
@csoete
hey peeps, I am gonna go on vacation for one week without any digital devices. I won’t able to answer questions until next friday. Cheers
Tony Keith
@onewithhammer
@TheSavior - you are trying to use webdriver after calling quit(). I had this problem using grunt-webdriver plugin. The plugin will call quit for you. Please check to make sure you aren't calling quit before test are complete.
Slava
@ButuzGOL
Hello Can anybody help me how can I prevent error on waitForExist ?
Miguel Rivera
@miguelrivera
@ButuzGOL what is the error?
Slava
@ButuzGOL
Error: element (#sessions-concurrent-modal .modal) still not visible after 5000ms
The problem is that I can show one of two dom items and I need to handle only one which will be shown
csoete
@csoete
just add catch(function() {}); to each call, I think...
the best way would probably be to use two deferreds and reject each on catch and q.any to resolve a combination of both promises
return q.any([isFirstVisible, isSecondVisible)
something like that
csoete
@csoete
@ButuzGOL
 var isVisible1 = q.defer();
 var isVisible2 = q.defer();
 var isAnyVisible = q.any([isVisible1.promise, isVisible2.promise]);

this.waitForVisible('#sessions-concurrent-modal .modal', 5000)
  .click('#sessions-concurrent-modal [data-action=force-submit]')
  .waitForExist('body>#main', 5000)
  .then(function() {
    isVisible1.resolve(true);
  })
  .catch(function() {
    isVisible1.reject();
  });

this.waitForExist('body>#main', 5000)
  .then(function() {
    isVisible2.resolve(true);
  })
  .catch(function() {
    isVisible2.reject();
  });
return isAnyVisible;
Slava
@ButuzGOL

Many thanks
But it still gives me error in console
Error: element (#sessions-concurrent-modal .modal) still not visible after 5000ms
at elements("#sessions-concurrent-modal .modal") at /Users/butuzgol/Playground/eclm-hot-test/node_modules/webdriverio/lib/commands/isVisible.js:41:17
at isVisible("#sessions-concurrent-modal .modal") at /Users/butuzgol/Playground/eclm-hot-test/node_modules/webdriverio/lib/commands/waitForVisible.js:36:21

Seems like catch https://github.com/webdriverio/webdriverio/blob/ce51baa448714e69f19899718236f988417b4b3d/lib/commands/waitForVisible.js#L55
still triggers

I also made using pause
.pause(1000)
.waitUntil(function() {
var defer = q.defer();

this.isVisible('#sessions-concurrent-modal .modal').then(function(value) {
  if (value) {
    this.click('#sessions-concurrent-modal [data-action=force-submit]')
    .waitForExist('body>#main', 5000)
    .then(function() {
      defer.resolve(true);
    });
  } else {
    this.waitForExist('body>#main', 5000)
      .then(function() {
        defer.resolve(true);
      });
  }
});

return defer.promise;

}, 5000)

csoete
@csoete
as an alternative try then with a second function as a reject
.then(function() {
  isVisible1.resolve(true);
},function() {
  isVisible1.reject();
});
Slava
@ButuzGOL
Many thanks for feedback it goes to the next step ok but also it shows Error: element (#sessions-concurrent-modal .modal) still not visible after 5000ms and I think to ignore it, should be done some modification in waitForVisible.js#L55
csoete
@csoete
I am pretty sure that is not the case.
Johan Thallauer
@JohanTh
would I have to use jquery to find an element by its text like <p>Text</p>?
csoete
@csoete
"p=Text"
Johan Thallauer
@JohanTh
oh, thank you :)
Lucas N. Munhoz
@lnmunhoz
Hey! I'm trying to use webdriver with meteor, but I can't find a tutorial to help me geting started.
I never make e2e tests before. Someone can help?
csoete
@csoete

Did you already write tests?

other tests?

The wdio runner currently supports Mocha, Jasmine (v2.0) and Cucumber.
Lucas N. Munhoz
@lnmunhoz
yes
but not in javascript
csoete
@csoete
Than you first have to chose a test framework
like mocha.js for example
Slava
@ButuzGOL
Hey! Have a question how can I run only one feature from cucumber ?
Kishore Kanna S
@skishorekanna
Hi, I am facing issue with lauching nw.exe using webdriverio
I started the java standalone server
then used webdriverio commands
running some tests using mocha
I am observing no errors but application is not launching
how can i debug this issue ?
I have seen the same setup running 5 months back. But not sure of the versions of webdriverio and mocha used that time. Now the same setup is not working with the new versions of webdriverio and mocha.
Also I have tried downloading the latest versions of selenium standalone server and chrome driver.