Install library for compare image on Robotframework
- Supatchakorn
- Dec 16, 2018
- 1 min read
install selenium2screenshots library ใช้สำหรับ Crop Image เพราะจะ Compare Image by Element
install ผ่าน command line ด้วยคำสั่ง
pip install robotframework-selenium2screenshots
Install image magic on windows https://imagemagick.org/script/download.php

Install image magic on Mac
open terminal -> brew update open terminal -> brew install imagemagick
Set the MAGICK_HOME environment variable to the path
Open .bash_profile
export MAGICK_HOME="/usr/local/Cellar/imagemagick/7.0.8-14" path ตามที่ install ไป
export PATH="$MAGICK_HOME/bin:$PATH"




![[Tool]ASM Android Screen Monitor](https://static.wixstatic.com/media/9ba3b9_0f60667ce79e4e8698a93ded3177e686~mv2.png/v1/fill/w_447,h_250,fp_0.50_0.50,lg_1,q_35,blur_30,enc_avif,quality_auto/9ba3b9_0f60667ce79e4e8698a93ded3177e686~mv2.webp)
![[Tool]ASM Android Screen Monitor](https://static.wixstatic.com/media/9ba3b9_0f60667ce79e4e8698a93ded3177e686~mv2.png/v1/fill/w_220,h_123,fp_0.50_0.50,q_95,enc_avif,quality_auto/9ba3b9_0f60667ce79e4e8698a93ded3177e686~mv2.webp)
![[How-To]วิธีดู udid ของเครื่อง Android](https://static.wixstatic.com/media/9ba3b9_5b491ebcc32f471ca9a4aabd96d41832~mv2.png/v1/fill/w_447,h_250,fp_0.50_0.50,lg_1,q_35,blur_30,enc_avif,quality_auto/9ba3b9_5b491ebcc32f471ca9a4aabd96d41832~mv2.webp)
![[How-To]วิธีดู udid ของเครื่อง Android](https://static.wixstatic.com/media/9ba3b9_5b491ebcc32f471ca9a4aabd96d41832~mv2.png/v1/fill/w_220,h_123,fp_0.50_0.50,q_95,enc_avif,quality_auto/9ba3b9_5b491ebcc32f471ca9a4aabd96d41832~mv2.webp)
![[Tool] UI Automator Viewer](https://static.wixstatic.com/media/9ba3b9_effe26d321544e478df8d306901cccc1~mv2.png/v1/fill/w_447,h_250,fp_0.50_0.50,q_35,blur_30,enc_avif,quality_auto/9ba3b9_effe26d321544e478df8d306901cccc1~mv2.webp)
![[Tool] UI Automator Viewer](https://static.wixstatic.com/media/9ba3b9_effe26d321544e478df8d306901cccc1~mv2.png/v1/fill/w_220,h_123,fp_0.50_0.50,q_95,enc_avif,quality_auto/9ba3b9_effe26d321544e478df8d306901cccc1~mv2.webp)












![[Python] TypeError: String indices must be integers By Adding Pytest-runner](https://static.wixstatic.com/media/9f1b00_e1685a26d4214fdeb150a0008671b87b~mv2.jpg/v1/fill/w_274,h_250,fp_0.50_0.50,q_30,blur_30,enc_avif,quality_auto/9f1b00_e1685a26d4214fdeb150a0008671b87b~mv2.webp)
![[Python] TypeError: String indices must be integers By Adding Pytest-runner](https://static.wixstatic.com/media/9f1b00_e1685a26d4214fdeb150a0008671b87b~mv2.jpg/v1/fill/w_69,h_63,fp_0.50_0.50,q_90,enc_avif,quality_auto/9f1b00_e1685a26d4214fdeb150a0008671b87b~mv2.webp)
![[Python] TypeError: String indices must be integers By Fixing Damaged Packages](https://static.wixstatic.com/media/9f1b00_48a23fd1b86d4becae687ec4bc2a99f0~mv2.png/v1/fill/w_442,h_250,fp_0.50_0.50,lg_1,q_35,blur_30,enc_avif,quality_auto/9f1b00_48a23fd1b86d4becae687ec4bc2a99f0~mv2.webp)
![[Python] TypeError: String indices must be integers By Fixing Damaged Packages](https://static.wixstatic.com/media/9f1b00_48a23fd1b86d4becae687ec4bc2a99f0~mv2.png/v1/fill/w_69,h_39,fp_0.50_0.50,q_95,enc_avif,quality_auto/9f1b00_48a23fd1b86d4becae687ec4bc2a99f0~mv2.webp)







Comments