Shinji Yamada
Shinji Yamada
it is way to do that. ```js .evaluate(_ => { document.querySelector('#target').style.opacity = '0' }) ```
`document` can be accessed in evaluate context only. does this works? ```js chromy .wait(2500) .goto(scenario.url) .evaluate(_ => { var elementExists = document.getElementsByClassName(".searchbarX div .hidden-lower-xl"); if (elementExists) { document.querySelector('.searchbarX div .hidden-lower-xl').style.opacity...
Hi @VladimirPittner, Please tell me chromy version. and, could you make a minimal reproduce sample?
Hi @JOEAV, You need to create multiple Chromy instances that have different port to run in parallel. example: ```js const Chromy = require('chromy') let port = 9222 let promises =...
thank you for reporting. could you attach a minimal reproduction code?
Hi, Currently chromy has no way to achieve this. But chrome devtools protocol has the event listener that is possibly helpful. https://chromedevtools.github.io/devtools-protocol/tot/Network/#event-responseReceived Here is example: ```js const Chromy = require('chromy')...
@NimaSoroush sounds good! returning `payload.response` seems to be useful. @garris thanks for your advice. I'll be conscious of the node6 compatibility with example code.
Hi @anton-kulagin, You can use `.console` to catch an error message. ```bash chromy.goto('http://yourhost/').console(msg => console.log(msg)) ```
following code works? ```js const Chromy = require('chromy') let chromy = new Chromy({visible:true}) chromy.chain() .console((text)=>{ console.log("-->" + text) //didn`t work }) .goto('http://localhost:3000/', {waitLoadEvent: false}) .evaluate(() => { window.onerror = function(msg)...
@anton-kulagin Thanks. I was not aware of the issue. To catch the exception, you can use `.on()` like this: ```js .on('Runtime.exceptionThrown', (params) => { console.log('---->', params) }) ``` PR is...