$x("your_xpath")
就能找到XPath對應的元素:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjB2PMK4V8GjT70mUe_tcnaf9HuDqJWy4JKt62Nt4JZGem59Y7KABH3KJc8Yon5cA8zUzYMLJIf0tpSrK524mIquxV5o95LhoTK8WfI6iIx-F3v2J3aJj3Pq5BGiXtmes1tLwwX8OMBf-_B/w400-h145/3S0I3uV.png)
如果元素在 iframe 裡,要切換到 iframe 只要在下圖中粉紅色的地方選擇對應的 iframe 即可:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCtOys0V_kBQ-2sUH4zaEK1yB0rPHkbElY9jgVVD1jhHeo02IvDLKvfxx_V7qBR9e8jfOccQ-oKS5DaGXy1pKLEbp42VMdDsUtbBhAVLMwE-4l-z9itHe0Cy5DJ6AaDIvWh9P3n2z0IoIV/w640-h229/SinK6Km.png)
$x("your_xpath")
就能找到XPath對應的元素:
安裝套件:
sudo apt-get install libheif-examples
到圖片的資料夾用下面的指令轉換成 png:for file in *.HEIC; do heif-convert $file ${file/%.HEIC/.png}; done
轉換成 jpg:for file in *.HEIC; do heif-convert $file ${file/%.HEIC/.jpg}; done
afc://deviceaddress:3/
:3/
去除,按下 Enter續之前的筆記 Ubuntu 用 libinput-gestures 設定觸控手勢。
最近重裝系統,設定 libinput-gestures 時發現有GUI的手勢設定套件「Gestures」。
安裝也很簡單:
git clone https://gitlab.com/cunidev/gestures
cd gestures
sudo python3 setup.py install
沒有py3、pip3、setuptools的要先裝一下。
設定界面長這樣:
一開始測試的時候可以把3指上滑的 notiy-send 打開,看看到底有沒生效, 一開始裝完 libinput-gestures restart 沒生效,重開機之後就有了。
{"id":"model.incoming_hook.parse_data.app_error","message":"Unable to parse incoming data","detailed_error":"","request_id":"xxxxxxxxx","status_code":400}
ngrok http 8888
Forwarding http://xxxxxx.ngrok.io -> http://localhost:8888
Forwarding https://xxxxxx.ngrok.io -> http://localhost:8888
command with a trigger of ‘xxxx’ failed