如使用
driver.get('https://mbd.baidu.com/newspage/data/landingsuper?context=%7B%22nid%22%3A%22news_9501704239938886873%22%7D&n_type=0&p_from=1')
,浏览器能打开,但是页面无法打开,不晓得是不是因为参数中有特殊字符导致,如果把 url 换成一般的 url,如https://www.baidu.com/s?wd=python就可以正常打开页面
appium 中的日志
[HTTP] --> POST /wd/hub/session/b00b3b61-de7f-49c2-a1a7-cf902fdb908f/url
[HTTP] {"url":"https://mbd.baidu.com/newspage/data/landingsuper?context=%7B%22nid%22%3A%22news_9501704239938886873%22%7D&n_type=0&p_from=1,sessionId:b00b3b61-de7f-49c2-a1a7-cf902fdb908f"}
[MJSONWP (b00b3b61)] Calling AppiumDriver.setUrl() with args: ["https://mbd.baidu.com/newspage/data/landingsuper?context=%7B%22nid%22%3A%22news_9501704239938886873%22%7D&n_type=0&p_from=1,b00b3b61-de7f-49c2-a1a7-cf902fdb908f"]
[ADB] Running 'D:\software\sdk-tools-windows-3859397\tools\platform-tools\adb.exe -P 5037 -s DSLDU20402011273 shell am start -W -a android.intent.action.VIEW -d https://mbd.baidu.com/newspage/data/landingsuper\?context=%7B%22nid%22%3A%22news_9501704239938886873%22%7D\&n_type=0\&p_from=1 com.android.chrome'
[MJSONWP (b00b3b61)] Responding to client with driver.setUrl() result: null
[HTTP] <-- POST /wd/hub/session/b00b3b61-de7f-49c2-a1a7-cf902fdb908f/url 200 530 ms - 76
[HTTP]
[HTTP] --> POST /wd/hub/session/b00b3b61-de7f-49c2-a1a7-cf902fdb908f/element
不知道怎么解决这种问题