代码:
#coding=utf-8 import requests import json url='http://127.0.0.1:4444/wd/hub/session' data = json.dumps({ 'desiredCapabilities':{ 'browserName':'MicrosoftEdge' } }) print(requests.post(url,data).json())
结果:
VSCode:
cmd:
2024-01-22 13:01:41
代码:
#coding=utf-8 import requests import json url='http://127.0.0.1:4444/wd/hub/session' data = json.dumps({ 'desiredCapabilities':{ 'browserName':'MicrosoftEdge' } }) print(requests.post(url,data).json())
结果:
VSCode:
cmd: