issues
search
junwenzh
/
price-monitor
MIT License
0
stars
1
forks
source link
If the view port is less than the screenshot width, the screenshot scales down
#10
Open
junwenzh
opened
5 months ago
junwenzh
commented
5 months ago
Describe the Bug
When this happens, we won't get the correct coordinates.
Possible Solutions
Prevent scaling of the screenshot when the viewport is lower than 1000px.
Make playwright open the website in mobile view and send a screenshot with a lower width
Had problem with Amazon using this method. Amazon was giving a screenshot with > 1000px width regardless of what we requested
Find the ratio that the image was scaled down at, and calculate the coordinates
Describe the Bug
When this happens, we won't get the correct coordinates.
Possible Solutions