Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I execute Selenide in Chrome using ChromeDriver

I started using selenide (selenium wrapper api) and must say its a great tool but my only issue is its lack of documentation or usage examples online yet.

Any idea how to run your application coded in selenide in google-Chrome. I am using eclipse as IDE. I have added an environment variable "browser" with value chrome in my run configuration but when I run it picks up firefox.

My stack is JDBC Java Selenide

like image 502
Afamee Avatar asked Dec 06 '22 21:12

Afamee


1 Answers

Try this

System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver");
System.setProperty("selenide.browser", "Chrome");
open("http://google.com");

You can find some documentation here.

like image 58
Filipp Shestakov Avatar answered Jan 17 '23 00:01

Filipp Shestakov