Replies: 5 comments 1 reply
-
Can you provide more context why you would like to use the devtools protocol? Technically I don't see a reason why this should not work. |
Beta Was this translation helpful? Give feedback.
-
Though wdio has done some work to hide driver protocol differences in API level, but not all of them could be done perfectly - in fact there are still many of them left to the user handle with Like the behavior of listening to alert, After many practices, it seems the simplest way could be to just use the same protocol for your product when testing it in different platform/browser -- even if you're using wdio. Our app is tested in FF, Chrome and Electron For chrome and firefox even if devtool is used there can be still a lot of different behaviors |
Beta Was this translation helpful? Give feedback.
-
Being honest I don't know what's involved here, whether it requires changes to this service and / or WDIO, or if it's just a support / WDIO usage issue. |
Beta Was this translation helpful? Give feedback.
-
@pillsilly thanks for providing more input. I honestly would recommend not to rely on the devtools protocol. It is proprietary and can change between every Chrome version. The WebDriver protocol is better suited as it doesn't change and features are tested. If you need features that are only available in the devtools protocol I would just switch to it if necessary but do all other automation through WebDriver. Again, given that Chromedriver also just uses the devtools protocol I assume it is possible to attach yourself to it. The service is currently starting the session via WebDriver. I am sure same is possible via DevTools. It would require to start the app with some additional parameter I assume. There could be a service option defining how to start the session. If you are interested implementing this feature, let us know. |
Beta Was this translation helpful? Give feedback.
-
talking about that I had experience for similar work on other test stack. it was cucumber + protractor + wdio protractor conf:
cucumber hook
it works well, under such configurations I am able to use browserWdi ( the browser instance from wdio) and browser (protractor's browser instance) simultaneously. but in wdio I am not sure how to achieve similar thing because it doesn't seem like wdio provides an API like but anyway I would like to try when I have time , to see if I call the but if you @christian-bromann or anyone has idea/info for how it could be possible (to let the devtool becomes my main driver of electron test undre wdio) it would be thankful |
Beta Was this translation helpful? Give feedback.
-
Just curious
Beta Was this translation helpful? Give feedback.
All reactions