输入“Selenium”:
curl -d @JsonFile4.json http://localhost:9515/session/36d903cbd2177c278b5d39bbe74a3318/element/0.7861531328870939-1/value
JsonFile4.json内容:{"value":["Selenium"]}
4.点击“百度一下”
获取elementId:
curl -d @JsonFile5.json http://localhost:9515/session/36d903cbd2177c278b5d39bbe74a3318/element
JsonFile5.json内容:
{"using":"css selector","value":"#su"}
[attach]136121[/attach]
点击:
curl -d @JsonFile4.json curl -d @JsonFile6.json http://localhost:9515/session/36d903cbd2177c278b5d39bbe74a3318/element/0.7861531328870939-2/click
JsonFile6.json内容:
{}
5.关闭Chrome浏览器
关闭Chrome:
关闭Chrome
curl -X DELETE http://localhost:9515/session/36d903cbd2177c278b5d39bbe74a3318
关闭chromedriver.exe:
curl http://localhost:9515/shutdown
调用ChromeDriver的C#代码