Issue
I've been trying to study Selenium in ways we can incorporate it in our testing. I've read and watched some tutorial and it basically needs to use chromedriver.exe set as webdriver.chrome.driver property. However, our company policies restrict us from using/executing exe files. As a result, when I try my code for Selenium chrome, I get an error that the exe trying to execute is unauthorize.
So my question is that, is there any way I can use Selenium for chrome without having to use chromedriver.exe? If you know a link for a documentation, turorial or even a youtube guide, please let me know. Thanks!
Solution
I believe it is not possible to use chrome browser in Selenium without using chromedriver.exe. The same applies to Internet Explorer as well.
However, if you are really prohibted from using .exe files, then executing your test scripts in Firefox will be helpful. All you need to do is to add the below code:
driver = new FirefoxDriver();
No need to refer any .exe files when it comes to Firefox. Hope this helps!
UPDATE: After Selenium 3 even Firefox needs geckodriver.
Answered By - justcurious
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.