by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 18:06
    Travis aduggirala/webdriverio (master) errored (59)
  • 17:05
    christian-bromann commented #5424
  • 17:04

    christian-bromann on cb-mocha-timeout

    (compare)

  • 17:04

    christian-bromann on master

    Improve Mocha timeout message (… (compare)

  • 17:04
    christian-bromann closed #5435
  • 17:02
    christian-bromann commented #5435
  • 17:00
    christian-bromann closed #5436
  • 17:00
    christian-bromann commented #5436
  • 16:51
    osmolyar commented #4134
  • 16:47
    tawfiknouri commented #4134
  • 16:39
    JuanRodriguezAbarca commented #5434
  • 16:34
    jineshkhimsaria opened #5436
  • 16:33
    osmolyar commented #4134
  • 16:32
    osmolyar commented #4134
  • 16:12
    JuanRodriguezAbarca commented #5434
  • 16:11
    JuanRodriguezAbarca commented #5434
  • 15:57
    wswebcreation commented #5434
  • 15:54
    erwinheitzman commented #5411
  • 15:35
    erwinheitzman commented #5424
  • 15:23
    christian-bromann synchronize #5435
Raul Mocian
@raul.mocian_gitlab
how can I switch to the print preview page from Chrome browser?
sanmaru
@sanmaru
@raul.mocian_gitlab use browser.keys("Ctrl","P");
see if that helps
Raul Mocian
@raul.mocian_gitlab
I managed to open it, but I need to switch to the print preview page so that I can click the actual Print button
Christian Bromann
@christian-bromann
@raul.mocian_gitlab there is currently only support to print PDFs using Chrome
sanmaru
@sanmaru
@christian-bromann okay thank you, let me check
sanmaru
@sanmaru
@christian-bromann ,I am using typescript, when i try to configure the type defs for shared-store object, i am not able to find the right type. can you please advise? or should i keep it 'any ' type
declare namespace WebdriverIO {
    interface BrowserObject {
            sharedStore:any 
}
Christian Bromann
@christian-bromann
keep “any” we don’t have type definitions for that service yet
actually we do
you just need to add it to your tsconfig
sanmaru
@sanmaru
image.png
okay it works, thank you.
Duc Le
@ducle91
Hi everyone, I have an application test written in wdio but run into an issue where it requires 2 factor auth. What are some ideas that I can use to authenticate my user?
sanmaru
@sanmaru
@ducle91 i think this is not relevant to WDIO forum question, however i suggest is to use any 2 factor auth soft token API(s).
So if you can get the access to soft token api(s) you can put them in before hooks & authenticate..
1 reply
subhlabh610
@subhlabh610
Hi All, Need some assistance. I am using below code to take the screenshot but its taking screenshot without address bar. So is there any way to include address bar in screenshot?
cucumberJson.attach(browser.takeScreenshot(), 'image/png');
Pascal König
@pako88
@subhlabh610 not with wdio afaik
subhlabh610
@subhlabh610
@pako88 ohhh!
Anyone have any idea/work around to achieve this?
I am using below code to take the screenshot but its taking screenshot without address bar. So is there any way to include address bar in screenshot?
cucumberJson.attach(browser.takeScreenshot(), 'image/png');
krishna-auto
@krishna-auto

@krishna-auto there's a blog about that right here https://webdriver.io/blog/2019/06/25/file-upload.html

Hi @erwinheitzman , this worked for me on chrome, but its failing on headless chrome execution and as well as non-headless/headless mode in firefox, same failure "element is not interactable" error, In the above given link its given that "that is currently only supported when running Chrome", anyway to make it work on firefox && chrome headless? Thanks!

kblain1967
@kblain1967
Now that webdriver.io v6 has been released, is there an end of support date for v5?
Christian Bromann
@christian-bromann
@kblain1967 not yet .. it’s likely that we drop support next year if we release v7
Syed Rizvi
@irtiza
@christian-bromann is there a way to rerun whole suites if there is just 1 failure? I know in jasmine I can try it blocks but I want to retry whole spec
Christian Bromann
@christian-bromann
@irtiza please don’t ping people directly and ask the channel instead
Syed Rizvi
@irtiza
@here thank you.
skamineni
@skamineni
Hi, We see lot of ERROR webdriver: GotError: socket hang up now a days in V6. Does anyone has any idea ?
Jordan Brant Baker
@hexsprite
Hi, I'm working on porting my test suite to wdio. The 1st test runs fine but in watch mode on subsequent runs I get RequestError: connect ECONNREFUSED 127.0.0.1:4444. If I restart the process it runs fine. How can I fix watch mode? I'm using all the latest versions of the published wdio packages and chromedriver
3 replies
TiagoEusebioMarques
@TiagoEusebioMarques

hello. when i try to run my tests this message appear on my terminal:
automated_testing
automated_testing
/var/www/automated-tests/node_modules/@wdio/cli/node_modules/fs-extra/lib/mkdirs/make-dir.js:86
} catch {
^

SyntaxError: Unexpected token {
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:599:28)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/var/www/automated-tests/node_modules/@wdio/cli/node_modules/fs-extra/lib/mkdirs/index.js:3:44)

i already updated my wdio package and it still appears.

My package list:
"@wdio/allure-reporter": "^6.1.12",
"@wdio/cli": "^6.1.12",
"@wdio/dot-reporter": "^6.1.9",
"@wdio/local-runner": "^6.1.12",
"@wdio/mocha-framework": "^6.1.8",
"@wdio/sauce-service": "^5.3.2",
"@wdio/spec-reporter": "^6.1.12",
"@wdio/sync": "^6.1.8",
"wdio-chromedriver-service": "^6.0.3",
"wdio-intercept-service": "^4.0.0",
"webdriverio": "^6.1.12"

mariobianco
@mariobianco

:point_up: May 22, 2020 2:20 PM

Friendly bump. I am unable to get the wdio log level of trace to print anything. I can only get levels debug and up to print info.

I'm wishing to see trace levels to see if it would help debug this cryptic error some of my team members are receiving in which the Chrome browser instance is failing to launch for them.
This is the output they receive (not too informative as to why it is failing to spin up a Chrome browser instance) -- it simply outputs [0-0] FAILED and that's it:

Execution of 1 spec files started at 2020-05-22T20:36:07.222Z
2020-05-22T20:36:07.227Z INFO @wdio/cli:launcher: Run onPrepare hook
2020-05-22T20:36:07.252Z INFO @wdio/local-runner: Start worker 0-0 with arg: src/conf/wdio.final.conf.js,--spec,src/test/some_feature/some_test/auto-orders-poc.spec.ts
[0-0] 2020-05-22T20:36:07.779Z INFO @wdio/local-runner: Run worker command: run
[0-0] FAILED
2020-05-22T20:36:25.633Z INFO @wdio/cli:launcher: Run onComplete hook
Spec Files:     0 passed, 1 failed, 1 total (100% completed) in 00:00:18 
2020-05-22T20:36:25.637Z INFO @wdio/local-runner: Shutting down spawned worker
2020-05-22T20:36:25.892Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully
2020-05-22T20:36:25.893Z INFO @wdio/local-runner: shutting down
skamineni
@skamineni
anyone seeing socket hangup with V6 ? If so please help us.
43 replies
dagoud
@dagoud
@irtiza are you using mocha test framework? If so we achieved this with combination of bail:true in mochaOpts and specFileRetries: 1, in your wdio.conf.js
Gintautas Kazlauskas
@ploover
Hiya, from what I've read I understand that wdio has all of the JSON Wire protocol commands implemented, so why am I getting browser.getLocalStorage is not a function when I'm trying to call browser.getLocalStorage or browser.setLocalStorage
Erwin Heitzman
@erwinheitzman
@ploover the JSON Wire protocol is a old protocol that is no longer used by most browsers, hence the drivers listen to the newer Webdriver protocol instead
skamineni
@skamineni
image.png
@erwinheitzman that ^
kblain1967
@kblain1967
I updated the following packages
"@wdio/allure-reporter": "^6.0.0",
"@wdio/browserstack-service": "^6.0.0",
"@wdio/cli": "^6.0.0",
"@wdio/local-runner": "^6.0.0",
"@wdio/logger": "^6.0.0",
"@wdio/mocha-framework": "^6.0.0",
"@wdio/reporter": "^6.0.0",
"@wdio/spec-reporter": "^6.0.0",
to v6 and I'm unable to create the sessions and get the errors: Hostname/IP does not match certificate's altnames: Host: localhost. is not in the cert's altnames...
I did setup my services section:
image.png
kiranmai1202
@kiranmai1202
what is the webdriverio command to execute single test suite?
I tried this npm test -- --spec=login.js
This is giving me error
could someone pls suggest. Thq
when i am trying to execute the above command, window is hanging and not opening chrome instance
kblain1967
@kblain1967
should be `npm run test -- --spec <FULL PATH to spec >
Erwin Heitzman
@erwinheitzman
@kiranmai1202 that depends what you mean by suite but this should help you https://webdriver.io/docs/organizingsuites.html#run-suites-and-test-specs
kiranmai1202
@kiranmai1202
am running only one spec
Erwin Heitzman
@erwinheitzman
check the link
all the info is there
kiranmai1202
@kiranmai1202
sure, going through it
Erwin Heitzman
@erwinheitzman
IanHop
@IanHop
Does anyone else have issues setting cookies in safari? Its the only browser that seems to not work for me