appium 打开 chrome,当 url 含有较多参数且有特殊字符时无法打开页面

如使用
driver.get(‘https://mbd.baidu.com/newspage/data/landingsuper?context={“nid”%3A"news_9501704239938886873"}&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={“nid”%3A"news_9501704239938886873"}&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={“nid”%3A"news_9501704239938886873"}&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

不知道怎么解决这种问题

关闭