healenium / healenium-web

Self-healing library for Selenium Web-based tests
Apache License 2.0
169 stars 40 forks source link

Healenium javascripts support #167

Closed PavanDuvvuri closed 2 years ago

PavanDuvvuri commented 2 years ago

Does Healenium supports javascripts with WebdriverIO tool?

ElenaStepuro commented 2 years ago

Hello @PavanDuvvuri ! Yes, Healenium supports javascript language. The steps to use it are the same as for Python and .NET platforms. Please, find examples here: https://github.com/healenium/healenium-example-python

PavanDuvvuri commented 2 years ago

Hello @ElenaStepuro Thanks for your reply. I'm able to execute dot net version by making all other containers up and running in local..I think the same remote webdriver of selenium I need to use for javascript automation as well by referring from these https://github.com/healenium/healenium-example-dotnet templates..

ElenaStepuro commented 2 years ago

Hello @PavanDuvvuri , correct, you can use dotnet templates. And one small thing which is not mentioned there: WebDriver creation differ from Java usage. You don't need to create SelfHealingDriver; instead of it to use Healenium you should create RemoteWebDriver by URL http://:8085

PavanDuvvuri commented 2 years ago

Thanks @ElenaStepuro, do you have any sample script on how to invoke driver using RemoteWebDriver at "http://localhost:8085" in javascript? I m using wedriverIO tool.. thanks

PavanDuvvuri commented 2 years ago

HI @ElenaStepuro I followed https://webdriver.io/docs/configurationfile/ and it worked, thanks