java -jar selenium-server-standalone-2.53.1.jar -role hub explorer http://192.168.1.173:4444/grid/console nautilus http://192.168.1.173:4444/grid/console java -jar selenium-server-standalone-2.53.1.jar -role node -hub http://192.168.1.173:4444/grid/register explorer http://192.168.1.173:4444/grid/register nautilus http://192.168.1.173:4444/grid/register
//WebDriver driver = new FirefoxDriver(); URL hubUrl = new URL("http://192.168.1.173:4444/wd/hub"); DesiredCapabilities capabilities = DesiredCapabilities.firefox();//new DesiredCapabilities(); capabilities.setBrowserName("firefox"); capabilities.setPlatform(Platform.WINDOWS); //capabilities.setVersion("3.6"); WebDriver driver = new RemoteWebDriver(hubUrl,capabilities);
uuid=`uuidgen` echo ${uuid} echo ${uuid}.png echo $uuid.png #! uuid include echo ${uuid}.png echo "${uuid}.png" curl "http://192.168.1.173:100/cyb/getsnapshot" --data "pathName=${uuid}.png&url=http%3A%2F%2Fwww.baidu.com" curl "http://192.168.1.173:100/cyb/getsnapshot" -d "url=http%3A%2F%2Fwww.baidu.com&pathName=${uuid}.png" curl "http://192.168.1.173:100/cyb/getsnapshot" -d "url=http%3A%2F%2Fwww.jd.com&pathName=${uuid}.png" curl https://download.mozilla.org/?product=firefox-46.0&os=win&lang=zh-CN