Myluzh Blog

Python selenium在Chrome中设置传感器(位置)

2023-5-25 myluzh Python

是否可以使用 Chrome Headless 设置自定义位置坐标?我在里面找不到。 Is it possible to set custom location coordinates with Chrome Headless? I can't find it in the Devtools protocol API. Is there a workaround available? 解决方案 I googled it and got many methods. I try one by one, almost all of them turn out outdated. Then I find out a solution, use chrome devtools protocol to achieve that. The small example code below, that it uses the most common tool selenium to execute chrome devtools protocol command. import time from selenium.webdr...

阅读全文>>

标签: selenium Chrome 传感器 位置 虚拟定位

评论(0) (367)