3

I was trying to launch a PhantomJS browser and it works on Azure VM. (I just point the PhantomJS.exe and it works)

Then I try to launch a google web-driver and its asking me to locate the google installed location. (I dont install google chrome browser).

So is there any other web drivers like PhantomJS which I dont need to install in order to launch it?

1 Answer 1

3

Yes, HTMLUnit and Rhino+Env.JS. But just like Phantom.JS I do not think they are actively developed. Suggested is to install Firefox or Chrome and use their headless mode.

You could also try https://www.cypress.io/ which ships with Chromium and Electron.

5
  • Cool ,Thanks @Niels.
    – ChathuD
    Aug 27, 2019 at 2:46
  • Hi @Niels I tryed HtmlUnitDriver on my .net project seems to be its not supporting .Net.And i tryed IE headless mode and it says unable to start the process.Becouse im trying to do some tricky thing which is runing a selenium script as a app-service on Azure. So i dont have access to the actual VM its hosting And thats why i cant install apps firefox or chrome browsers on it.
    – ChathuD
    Sep 2, 2019 at 4:03
  • I dont think you should try to use HtmlUnitDriver unless your application was built TDD against it. IE does not have a headless modes. Get access, or change your test infrastructure so you do control it. I think running Selenium tests as a app-service is a whole new question on its own. Which I do not have an answer for. Why dont you use hosted WebDriver service and let it run tests against your Azure application? Sep 2, 2019 at 8:11
  • hosted WebDriver service ... mmmm.This is somthing new to me.Let me try.
    – ChathuD
    Sep 3, 2019 at 5:00
  • yeah saucelabs or testingbot, but research more newer services :) Sep 3, 2019 at 5:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.