Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 18:47
    mgrybyk commented #4386
  • 18:35
    ducle91 commented #4134
  • 18:34
    ducle91 edited #4134
  • 18:30
    klamping opened #4394
  • 17:56
    shinxi commented #4380
  • 16:26
    nicholasbaileyrally commented #4386
  • 14:23
    codecov[bot] commented #4393
  • 14:16
    romovs synchronize #4393
  • 14:13
    christian-bromann closed #4383
  • 14:13
    christian-bromann commented #4383
  • 14:05
    romovs opened #4393
  • 13:14
    mgrybyk closed #4392
  • 13:14
    mgrybyk commented #4392
  • 12:20
    fege opened #4392
  • 11:04
    yuriieasternpeak edited #4390
  • 10:26
    christian-bromann commented #4210
  • 10:23
    codecov[bot] commented #4391
  • 10:23
    christian-bromann synchronize #4391
  • 10:23

    christian-bromann on cb-devtools-e2e

    add e2e tests to CI (compare)

  • 10:16
    codecov[bot] commented #4391
Níkolas Escobar
@NikoEscobar
but this Micro Focus Services, messes with all command requests
So no one can help me
I need to throw Micro Focus product to trash, but I cant, cuz is what my company uses
@maxurbanija yes I did, I can even show you the appium server log
So I'm gonna try this
SignOnPage.open()
browser.pause(5000)
$('input[name=federalTaxId]').click()
browser.pause(5000)
browser.$('input[name=federalTaxId]').click()
browser.$('input[name=federalTaxId]').click()
browser.$('input[name=federalTaxId]').click()
browser.$('input[name=federalTaxId]').click()
browser.$('input[name=federalTaxId]').click()
SignOnPage.setFederalTaxInput(registeredOnboardingFinishedFederalTaxId)
browser.pause(5000)
Erwin Heitzman
@erwinheitzman
What is this Micro Focus Services?
Have never heard of it
Níkolas Escobar
@NikoEscobar
@erwinheitzman A really bad service that let you do remote functional tests on mobile using there web interface to click on the screen of the mobile and stuff
Erwin Heitzman
@erwinheitzman
And all the webdriver commands that wdio sends go through that and are somehow modified, is that what you are saying? :O
Níkolas Escobar
@NikoEscobar
my company use its already build architecture to open sessions, create reservations, and close reservation to automate tests om native app with java + selenium
I was hired to implement the use of webdriver IO over it
I did a really good job with androids
but iOS hates me
Erwin Heitzman
@erwinheitzman
But how do you ever know if it's wdio, or the Micro Focus Services that is at fault when something is going wrong?
Níkolas Escobar
@NikoEscobar

@erwinheitzman yes, the webdriver commands request are modified, and the response as well

for example, if a response should return with the json {status: 200, id:8usd8sd8sd, value: 'null'}

the micro focus service send me a

{status: 200, id:8usd8sd8sd}

it stripes every null value from the response

you have no idea how it mess everything on webdriver io side
Erwin Heitzman
@erwinheitzman
T_T
Níkolas Escobar
@NikoEscobar
but thats a easy example on how to solve
I just altered the response and recreated the value ket IF it is undefined
so if is undefined I append a value:'null' to the response object
them I let it goes to webdriver io
Christian Bromann
@christian-bromann
@NikoEscobar this is not protocol compliant and should be fixed by your grid
even though wdio could be more forgiving here but until what point should we stop forgiving?
Níkolas Escobar
@NikoEscobar
Yeas, I know, I'm only here for help, cuz I have no iMac to run the iphones locally, if I could I would just compare both setup requests, and fix whatever is possible
Oliver Arend
@raketenolli

I have a problem with running v5 tests on Saucelabs:

Execution of 1 spec files started at 2019-08-21T15:10:09.060Z

2019-08-21T15:10:09.125Z INFO @wdio/cli:Launcher: Run onPrepare hook
2019-08-21T15:10:09.130Z INFO @wdio/local-runner: Start worker 0-0 with arg: wdio.saucelabs.conf.js
[0-0] RUNNING in chrome - C:\dev\eclipse-workspace\FrontendTestingWdioV5\spec\login.js
[0-0] 2019-08-21T15:10:09.712Z INFO @wdio/local-runner: Run worker command: run
[0-0] 2019-08-21T15:10:09.842Z INFO webdriver: [POST] https://ondemand.eu-central-1.saucelabs.com:443/session
[0-0] 2019-08-21T15:10:09.843Z INFO webdriver: DATA { capabilities:
   { alwaysMatch:
      { browserName: 'chrome',
        version: 'latest',
        platform: 'Windows 7',
        screenResolution: '1920x1200' },
     firstMatch: [ {} ] },
  desiredCapabilities:
   { browserName: 'chrome',
     version: 'latest',
     platform: 'Windows 7',
     screenResolution: '1920x1200' } }
[0-0] 2019-08-21T15:10:09.963Z WARN webdriver: Request failed due to 404 page not found

Am I missing something?

If I try Region US I get
Execution of 1 spec files started at 2019-08-21T15:12:49.564Z

2019-08-21T15:12:49.628Z INFO @wdio/cli:Launcher: Run onPrepare hook
2019-08-21T15:12:49.633Z INFO @wdio/local-runner: Start worker 0-0 with arg: wdio.saucelabs.conf.js
[0-0] RUNNING in chrome - C:\dev\eclipse-workspace\FrontendTestingWdioV5\spec\login.js
[0-0] 2019-08-21T15:12:50.209Z INFO @wdio/local-runner: Run worker command: run
[0-0] 2019-08-21T15:12:50.332Z INFO webdriver: [POST] https://ondemand.saucelabs.com:443/session
[0-0] 2019-08-21T15:12:50.333Z INFO webdriver: DATA { capabilities:
   { alwaysMatch:
      { browserName: 'chrome',
        version: 'latest',
        platform: 'Windows 7',
        screenResolution: '1920x1200' },
     firstMatch: [ {} ] },
  desiredCapabilities:
   { browserName: 'chrome',
     version: 'latest',
     platform: 'Windows 7',
     screenResolution: '1920x1200' } }
[0-0] 2019-08-21T15:12:51.749Z WARN webdriver: Request failed due to Unknown command
Níkolas Escobar
@NikoEscobar

I think i know whats going wrong with my clicks

[XCUITest] Executing command 'click'
[RemoteDebugger] Executing atom 'click'
[RemoteDebugger] Executing 'click' atom in default context
[RemoteDebugger] Sending javascript command (function(){return function(){var h,aa=this;fun...
[RemoteDebugger] Sending WebKit data: {"method":"Runtime.evaluate","params":{"objectGroup":"console","includeCommandLineAPI":true,"doNotPauseOnExceptionsAndMuteConsole":true,"expression":"(function(){return function(){var h,aa=this;fun...
[RemoteDebugger] Webkit response timeout: 5000
[RemoteDebugger] Received WebKit data: '{"result":{"result":{"type":"string","value":"{\"status\":0,\"value\":null}"},"wasThrown":false},"id":2}'
[RemoteDebugger] Found method 'Runtime.evaluate' for message '2'
[RemoteDebugger] Received result for atom 'click' execution: null
[W3C (155a3700)] Responding to client with driver.click() result: null
[HTTP] <-- POST /wd/hub/session/155a3700-8871-453d-bec7-085eccd4cc37/element/5000/click 200 76 ms - 14

[HTTP]

Is this:
[RemoteDebugger] Sending javascript command (function(){return function(){var h,aa=this;fun...

the same as the execute function?

a javascript injection on browser?

because if it is, well

execute function never worked for me, maybe if I fix this method request first, the click command might work

prog20901
@prog20901
How to iterate with several pages? How to exit a page ? How to use for loop to navigate the same page by closing and opening several times in selenium ?
hbagga
@hbagga
Is there any alternative to chooseFile() function that has been removed in version 5?
Wim Selles
@wswebcreation

@NikoEscobar

Posting it also here to prevent confusion for the rest of the channel

This is not something WebdriverIO calls, WebdriverIO calls the endpoint to do the click, then Appium sends it to the https://github.com/google/ios-webkit-debug-proxy, Appium doesn't use SafariDriver (yet) for automating Safari / Webviews

AP1717
@AP1717
it looks like the logs are coming from @wdio\cli\build\interface.js, can I turn off these logs? I thought the whole point of the reporter was to log this stuff
hbagga
@hbagga
@caoxu2000 Thank you!
Níkolas Escobar
@NikoEscobar
Hey guys sorry for the big font on my last comment, I have no idea how I did this, but wasn't my intention.
HarvWorks
@HarvWorks
Hello quick question, I noticed that in webdriverio v5 for cucumber, the debug option seems to be missing. Has it changed or has it been dropped out right?
ie.:
cucumberOpts: {
    debug: true
    ...
}
86SUSHIL
@86SUSHIL
hello one question, how to install specific version of chrome as I'm getting npm ERR! Failed at the chromedriver@76.0.0 install script.
as I want to install chromedriver@74
86SUSHIL
@86SUSHIL
Anyone have performed react js application test automation with wdio?
Can I have framework gitlink
?
hbagga
@hbagga
@86SUSHIL If you are using selenium standalone service you can set chrome version in seleniumArgs and seleniumInstallArgs
86SUSHIL
@86SUSHIL
@hbagga I'm using chrome

@hbagga ? Which framework do you want to use? mocha - https://www.npmjs.com/package/@wdio/mocha-framework
? Do you want to run WebdriverIO commands synchronous or asynchronous? sync
? Where are your test specs located? ./test/specs/*/.js
? Which reporter do you want to use? (Press <space> to select, <a> to toggle all, <i> to invert selection)
spec - https://www.npmjs.com/package/@wdio/spec-reporter
? Do you want to add a service to your test setup? (Press <space> to select, <a> to toggle all, <i> to inve
rt selection) chromedriver - https://www.npmjs.com/package/wdio-chromedriver-service
? What is the base url? http://localhost

Installing wdio packages:

  • @wdio/local-runner
  • @wdio/mocha-framework
  • @wdio/spec-reporter
  • wdio-chromedriver-service
  • @wdio/sync
  • chromedriver
jonDraugelis
@jonDraugelis
Is there a way to pull the chrome driver from a local file?
86SUSHIL
@86SUSHIL
error:-
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! chromedriver@76.0.0 install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the chromedriver@76.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
@jonDraugelis nope
jonDraugelis
@jonDraugelis
There was in v4. Was trying to do the same in v5