by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 13 16:54
    GibbsB opened #5728
  • Aug 13 15:41
    vipulgupta2048 edited #5727
  • Aug 13 15:41
    vipulgupta2048 opened #5727
  • Aug 13 11:27
    1950195 commented #1514
  • Aug 13 07:38
    koggdal commented #5710
  • Aug 12 19:18
    wbigno opened #5726
  • Aug 12 15:38
    marseam synchronize #5653
  • Aug 12 15:30
    marseam synchronize #5653
  • Aug 12 14:44
    vikash90 opened #5725
  • Aug 12 14:43
    vikash90 opened #5724
  • Aug 12 08:39
    HananArgov edited #5723
  • Aug 12 08:21
    HananArgov opened #5723
  • Aug 12 06:11
    stevoland commented #5702
  • Aug 12 00:29
    joscha commented #4974
  • Aug 12 00:03
    abubakarafzal commented #4974
  • Aug 11 20:26
    iboshkov edited #5722
  • Aug 11 20:26
    codecov[bot] commented #5040
  • Aug 11 20:26
    codecov[bot] commented #3148
  • Aug 11 20:26
    jsf-clabot commented #5722
  • Aug 11 20:25
    iboshkov edited #5722
Trey Turner
@treyturner
your two repos don't really relate at all
even though they may share some common dependencies
Garrett Smith™
@jsfaq_twitter
Frigging package.json. :-(
Trey Turner
@treyturner
npm should manage most of your package.json, especially when it comes to dependencies
any time you need to install a lib, install it using --save-dev and they will get added to your devDependencies
Garrett Smith™
@jsfaq_twitter
NPM hates me. They are racist
Trey Turner
@treyturner
okay, well i'm spent
Garrett Smith™
@jsfaq_twitter
Thanks you for your help. I'm trying here…
Christian Bromann
@christian-bromann
Hey @jsfaq_twitter , I remember you and know that I’ve banned you from here .. everyone earns a 2nd chance so I won’t ban you right away unless I see similar patterns to your choice of words as last time
Garrett Smith™
@jsfaq_twitter
I'll post penis pics when I'm ready
Christian Bromann
@christian-bromann
well he got a chance .. banned him again lol
Trey Turner
@treyturner
yeah i don't even
Adam Bjerstedt
@abjerstedt
Damn
I wanted to see those pics
egor.poluyan@yandex.ru
@EPoluyan_twitter
Hi, can I generate a checklist for my auto tests?
Adam Bjerstedt
@abjerstedt
What do you mean?
shaytolaculturetrip
@shaytolaculturetrip
Hi all, question about chapter events . i have a test that check if an event was fired. after that his click a link that open new page (same window), i can't keep on taking the events after moving to the new window. anything i can do?
Erwin Heitzman
@erwinheitzman
@ziffart_gitlab the reason that you are able to use $ $$ x$ and x$$ is because the Chrome devtools has also implemented a similar command on their own. You can test this in any Chrome installation by opening the devtools and using them in the console. The commands preceded by an x are their xpath equivalent. This should clear things up for you
@shaytolaculturetrip can you be a bit more specific? I am having a hard times trying to understand what it is that you are having difficulties with
shaytolaculturetrip
@shaytolaculturetrip
@erwinheitzman i have a tests that return if an event was fire (web event). when i click on a link and enter a new page(same window) i can't request for the event again
Erwin Heitzman
@erwinheitzman
@shaytolaculturetrip what do you mean by request for the event?
shaytolaculturetrip
@shaytolaculturetrip
@erwinheitzman web events that you can view in the console
Erwin Heitzman
@erwinheitzman
I have no idea what you are trying to achieve really
shaytolaculturetrip
@shaytolaculturetrip
@erwinheitzman i'll DM you maybe it will be more clear
Wim Selles
@wswebcreation

@/all

I wanted to announce that I just released a 1.0.0 version of wdio-image-comparison-service. This will be the first open source Visual regression/image comparison service for WebdriverIO V5. It will NOT be available for V4, you can use the wdio-visual-regression-service for that.

wdio-image-comparison-service is a lightweight WebdriverIO service for browsers / mobile browsers / hybrid apps to do image comparison on screens, elements or full page screens.

You can:

  • save or compare screens / elements / full page screens against a baseline
  • automatically create a baseline when no baseline is there
  • blockout custom regions and even automatically exclude a status and or tool bars (mobile only) during a comparison
  • increase the element dimensions screenshots
  • use different comparison methods
  • and much more

The module is based on the power of the new webdriver-image-comparison module. This is a lightweight module to retrieve the needed data and screenshots for all browsers / devices.
The comparison power comes from ResembleJS. If you want to compare images online you can check the online tool

It can be used for:

  • desktop browsers (Chrome / Firefox / Safari / Internet Explorer 11 / Microsoft Edge)
  • mobile / tablet browsers (Chrome / Safari on emulators / real devices) via Appium
  • Hybrid apps via Appium

For more info, check

https://github.com/wswebcreation/wdio-image-comparison-service

If there are any issues, please add them to the GitHub project or contact me in the Gitter channel https://gitter.im/wswebcreation/wdio-image-comparison-service

Oleksii
@CrispusDH
Wow, thanks a lot @wswebcreation .
Wim Selles
@wswebcreation
@CrispusDH
You're welcome, I already created the core module, so creating a service for WebdriverIO was pretty easy
Johan Hernefeldt
@presidenten
@wswebcreation Nice job! We have some projects where it will prove really useful!
Learn2ShareDev Learn2ShareDev
@learn2sharedev_gitlab
Hi..... struggling to fix: TypeError: _chalk.default.whiteBright is not a function.
sneakypete81
@sneakypete81

Hi all, I'm hoping to use WebdriverIO to test a Firefox WebExtension.
To do this, I need access to the browser Chrome context (toolbar buttons, etc.).

With selenium-webdriver I can:

driver.setContext(firefox.Context.CHROME);
// Toolbar button for the WebExtension
const BUTTON_ID = '_c07d1a49-9894-49ff-a594-38960ede8fb9_-browser-action';
const button = await driver.wait(until.elementLocated(By.id(BUTTON_ID)));

Is there something equivalent in WebdriverIO that can allow me to send a geckodriver SetContext command?

Adam Bjerstedt
@abjerstedt
@wswebcreation noice
You gonna import it into the monorepo?
Wim Selles
@wswebcreation
@abjerstedt
nope, I don't want to bother you all with it ;-)
I'll make a blog post and add it to the website later this week
Luc Charbonneau
@lcharbon
Getting "javascript error: Could not find the root element of your application" when selecting React components. Any ideas?
BTW thanks for the great feature :)
Wim Selles
@wswebcreation
@baruchvlz , do you happen to know this ^^
django news
@DjangoNewsUK_twitter

Hi All,

Can someone explain to me how I can get webdriver to access specific information from a web page (ie. some text or href values) which I can then use in subsequent test.

Below is a much simplified example of what I've been trying to do thus far

describe('Test Pages', function() {
  var tocLinks = $$('a')

  var paths = []

  tocLinks.forEach(function(path) {
    paths.push(element.getAttribute('href'))
  })

  paths.forEach(function(path) {
    it('element text matches', function() {
      browser.url(path)
      elem1 = $('#el1').getText()
      elem2 = $('#el2').getText()
      expect(elem1).to.equal(elem2);
    });
  });
});

In the above example I want to get the href values for a table of contents page, then dynamically create it blocks from the array of data I'm test but it seems the browser scope or somethig is unavailable as var tocLinks = $$('a') returns undefined

Adam Bjerstedt
@abjerstedt
@DjangoNewsUK_twitter is this your first wdio test?
or have you gotten it to work previously?
django news
@DjangoNewsUK_twitter
@abjerstedt this isn't my first test. I have tried to simplify what I am trying to do
Adam Bjerstedt
@abjerstedt
ok
django news
@DjangoNewsUK_twitter
I am trying to get webdriver to access specific information from a web page inside the describe block (ie. some text or href values) which I can then use in subsequent test (inside the it block)
Adam Bjerstedt
@abjerstedt
what do you get when you dump $$ at that point?
is it even defined?
i want to make sure that the global is being properly read
if you are using standalone mode, almost always, the global is never defined
if you are using our runner, it SHOULD be defined
browser.$$('selector')
django news
@DjangoNewsUK_twitter
I get the following error
TypeError: tocLinks.forEach is not a function
    at Suite.forEach (/Users/darrenfrancis/Documents/lrb/lrb-web/lrb-test/tests/content_m/test.js:19:14)
    at Object.create (/Users/darrenfrancis/Documents/lrb/lrb-web/lrb-test/node_modules/@wdio/mocha-framework/node_modules/mocha/lib/interfaces/common.js:140:19)
    at context.describe.context.context (/Users/darrenfrancis/Documents/lrb/lrb-web/lrb-test/node_modules/@wdio/mocha-framework/node_modules/mocha/lib/interfaces/bdd.js:42:27)
    at Object.describe (/Users/darrenfrancis/Documents/lrb/lrb-web/lrb-test/tests/content_m/test.js:14:1)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Module._compile (/Users/darrenfrancis/Documents/lrb/lrb-web/lrb-test/node_modules/pirates/lib/index.js:99:24)
    at Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Object.newLoader [as .js] (/Users/darrenfrancis/Documents/lrb/lrb-web/lrb-test/node_modules/pirates/lib/index.js:104:7)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)