Could not find load main class GridLauncher for se

2019-09-02 15:09发布

I want to test my native android app parallelly using Selenium grid .Is there any option to do the same in Selenium grid or in selendroid.

I tried steps mentioned in selendroid.io/scale.html and i encounter below mentioned error. Error

D:\mobile-test\selendroid grid>java -Dfile.encoding=UTF-8 -cp "selendroid-grid-plugin-0.17.0.jar:selenium-server-standalone-2.45.0.jar" org.openqa.grid.selenium.GridLauncher -capabilityMatcher io.selendroid.grid.SelendroidCapabilityMatcher -role hub -host 127.0.0.1 -port 4444 Error: Could not find or load main class org.openqa.grid.selenium.GridLauncher

1条回答
smile是对你的礼貌
2楼-- · 2019-09-02 15:12

Issue is with Jar file separator. If you are working on Mac/Unix use path separator as colon :. If you are working on Windows then use path separator as semicolon ;.

The exact usage is given on Selendroid Scaling. But it is very easy to miss out. You will not get any direct error for using wrong path separator but will end up getting ClassNotFoundError or similar.

查看更多
登录 后发表回答