Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 15:09
    gambrose opened #6048
  • 10:37
    christian-bromann assigned #5992
  • 10:08
    hico-bst commented #6047
  • 09:57
    christian-bromann commented #6047
  • 09:53
    christian-bromann synchronize #5839
  • 09:53

    christian-bromann on cb-rewrite-local-runner

    rewrote tests (compare)

  • 09:41
    hico-bst commented #6047
  • 09:16
    christian-bromann closed #6047
  • 09:16
    christian-bromann commented #6047
  • 09:12
    christian-bromann opened #5839
  • 08:58

    christian-bromann on cb-rewrite-local-runner

    rewrite source files (compare)

  • 08:49
    hico-bst edited #6047
  • 08:48
    hico-bst opened #6047
  • 07:42
    christian-bromann assigned #5839
  • 07:31
    christian-bromann closed #6045
  • 07:31
    christian-bromann labeled #6045
  • 06:05
    hieuxlu closed #6046
  • 06:05
    hieuxlu commented #6046
  • 03:32
    poc7667 opened #6046
  • 03:20
    arto710 edited #6038
Kevin Lamping
@klamping
Now that I read more about it, seems nothing in local storage is sent automatically
the reason my solution worked for me is that the JS on the page reads from local storage to get the key
https://javascript.info/cookie
"the browser automatically adds stored cookies to (almost) every request to the same domain using Cookie HTTP-header."
So it'll send using cookies, but not sure that'll work unless the server is looking at that Cookie header
ricardgarcia
@ricardgarcia
i dont think the server looks at it... only checks the request headers
Kevin Lamping
@klamping
you would set that in your wdio.conf.js file
Give that a shot... I'm pretty hopeful it'll work for you
ricardgarcia
@ricardgarcia
I've read that this headers only applies for requests sent to selenium server... not the ones for the browser
Kevin Lamping
@klamping
Oh darn
Maybe take a look at the new network mocks functionality: https://webdriver.io/blog/2020/07/10/network-primitives.html
although that seems to be more about recieving data from the server, versus sending it to the server
ricardgarcia
@ricardgarcia
let me check
Stefan Schweigert
@stefanschweigert
Thanks for the follow-ups @mgrybyk and @osmolyar !
Dmitry Munda
@dimkin-eu
anyone using wdio + browserstack + localtesting
can you comment on connection speed ? ain't it very slow ?
Carter Parks
@carter
hey all, i'm trying to run a wdio test suite on MSEdge but i'd like to install a browser extension. i've done this before with chrome and the similar options don't seem to work with edge and i'm noticing the extension menu item is greyed out when i try to investigate the issue
anyone experience something similar?
HardKode
@HardKode
@mgrybyk , I am trying to use the feature skip feature with no luck in v5 ( sorry, not updated yet)
featureFlags:{
specFiltering: true
},
Any clue how I can debug this ? See below my packages
$ npm list --depth=0 | grep wdio
+-- @wdio/cli@5.18.7
+-- @wdio/cucumber-framework@5.18.6
+-- @wdio/local-runner@5.18.7
+-- @wdio/mocha-framework@5.18.7
+-- @wdio/selenium-standalone-service@5.16.10
+-- @wdio/spec-reporter@5.18.7
+-- @wdio/sync@5.18.7
+-- wdio-cucumberjs-json-reporter@1.1.3
+-- wdio-reportportal-reporter@5.2.6
+-- wdio-reportportal-service@5.2.5
`-- wdio-video-reporter@2.0.1
Aaron Evans
@fijiaaron
I'm using webdriverio (sync) with typescript. I want to include an array of elements in a method signature. What is the type I would specify?
function checkElements(elements:TYPEOFELEMENT[]) { elems.forEach( element => element.isDisplayed()//etc ) }
Olga
@osmolyar
@fijiaaron the type should be WebdriverIO.Element
Aaron Evans
@fijiaaron
Thanks Olga, I was just about to guess that @osmolyar
Olga
@osmolyar
:thumbsup:
Mykola Grybyk
@mgrybyk
@HardKode for cucumber it should just wotk, make sure to use latest v5
suds0602
@suds0602

Hey All, is there a way that junit result file created has name of the spec file being executed? I want to create 1 result file each for every spec being execute in Mocha framework.

['junit', {
outputDir: './',
outputFileFormat: function(options) { // optional
return results-${options.cid}.${options.capabilities}.xml
}
}]

dolly-git
@dolly-git
Hi guys ..when I set environment variable using set NODE_ENV="CIT" am getting error like "NODE_ENV" is not recognised as an internal or external command,operable commad or batch file .I want to set my environment and wnat to run the Test case .could anyone please help
1 reply
Mykola Grybyk
@mgrybyk
@dolly-git the question is off topic
Sram
@Sram69233431_twitter
@Ganesh2324 : were you able to solve the issue you were facing? I am facing the same issue you were facing.
avinashs15
@avinashs15
Hi All, is there a way to disable the infobar that says "Chrome is being controlled by automated test software". I tried capabilities: [
{
maxInstances: 1,
browserName: 'chrome',
"goog:chromeOptions": {
"args": [
"disable-infobars"
]
}
},
], but it isnt working
1 reply
Mykola Grybyk
@mgrybyk
@avinashs15 why you do that?
Sram
@Sram69233431_twitter
image.png
3 replies
avinashs15
@avinashs15
I dont want the infobar to be visible. It was possible in protractor and in Selenium
Mykola Grybyk
@mgrybyk
If you remove it you'll get other popups and prompts that can impact automation, like password prompts, etc
Sram
@Sram69233431_twitter

image.png

Can anyone please help on this error? Have followed all the steps from https://webdriver.io/docs/gettingstarted.html

Mykola Grybyk
@mgrybyk
@avinashs15 it's not related neither to selenium nor to protractor at all, it's chromedriver feature
avinashs15
@avinashs15
@mgrybyk thank you. seems to be working now
Mykola Grybyk
@mgrybyk
Np, see flags like disable automation
Dmitry Munda
@dimkin-eu
hi! any ideas how to make devtools download/launch needed chrome version?
Mykola Grybyk
@mgrybyk
Devtools doesn't download any chrome version
38 replies
And should not
Dmitry Munda
@dimkin-eu
Screenshot 2020-10-28 at 12.11.19.png
Sivakumar ithanaboina
@siva1711
Hi Team, Is there any way to get full page screenshot with chrome browser using browser.takeScreenshot() function?
avinashs15
@avinashs15

Hi Team, Is there any way to get full page screenshot with chrome browser using browser.takeScreenshot() function?

afterStep: function (test: string, context: string): void {

browser.saveScreenshot('./Screenshots/Screenshot' + Date.now() + '.png');

},

Mykola Grybyk
@mgrybyk
Sivakumar ithanaboina
@siva1711

@siva1711 https://stackoverflow.com/a/64286853/2475987

Thanks @mgrybyk , I will try this

vishwasviny123
@vishwasviny123
Hi Folks,
I am new to webdriverio,
can you please help me for below.
error: ERROR @wdio/local-runner: Failed launching test session: Error: Parse error in 'features\Login_module.feature': (10:1): expected: #EOF, #TableRow, #DocStringSeparator, #StepLine, #TagLine, #ExamplesLine, #ScenarioLine, #ScenarioOutlineLine, #Comment, #Empty, got '// User account has to created before validating//'
vdrulerz
@vdrulerz
@vishwasviny123 Your feature file is not right...either you have any wrong term written there for example if you have any example table in your feature file then it should be a Scenario Outline and not Scenario in such cases these error comes...please review your feature file from start till end you will find the mistake surely
Olga
@osmolyar
@vishwasviny123 what @vdrulerz said, or an examples table with the wrong number of cells in a row
@Sram69233431_twitter it's "npx wdio wdio.conf.js" not "npx wdio.conf.js"
Vlad Lena
@vladlena04
Hello!
can you help me please.
Chromedriver open a blank page instead of the target website in webdriver IO, it have no messages in logs and tests fall by timeouts because of about blank page
What can i do?