Integrate Alfa with Selenium #310
-
Hello Team, |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Hi there and thanks for reaching out! We don't yet offer an integration for the JavaScript-based Selenium bindings, though it's definitely something I'd be interested in investigating. The closest we currently have is an integration for WebdriverIO, which is capable of connecting to a Selenium grid as far as I can tell. Are you interacting with Selenium through the JavaScript bindings? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply !! Can you please let me know the details about the Webdriver integration. I will check that if that can be embedded in our framework. |
Beta Was this translation helpful? Give feedback.
-
No problem! You can see an example of the integration in use here: https://github.com/Siteimprove/alfa/tree/master/docs/examples/page-testing/webdriver |
Beta Was this translation helpful? Give feedback.
-
I was expecting an alfa library that can be added to pom file and my java code can make use of the alfa methods. I think thats not possible right? |
Beta Was this translation helpful? Give feedback.
-
Ah, I'm afraid not; for now, we will only provide integrations for JavaScript as Alfa itself is written in JavaScript. One possibility would however be to create a script that runs an audit using Alfa, bundle that script using a tool like Rollup, and then load that bundle into the browser from Selenium. |
Beta Was this translation helpful? Give feedback.
Hi there and thanks for reaching out! We don't yet offer an integration for the JavaScript-based Selenium bindings, though it's definitely something I'd be interested in investigating. The closest we currently have is an integration for WebdriverIO, which is capable of connecting to a Selenium grid as far as I can tell. Are you interacting with Selenium through the JavaScript bindings?