java -jar selenium-server-standalone-2.53.1.jar -role hubexplorer http://192.168.1.173:4444/grid/consolenautilus http://192.168.1.173:4444/grid/consolejava -jar selenium-server-standalone-2.53.1.jar -role node -hub http://192.168.1.173:4444/grid/registerexplorer http://192.168.1.173:4444/grid/registernautilus 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}.pngecho $uuid.png#! uuid include \recho ${uuid}.pngecho "${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