Unable to see images on IDE while using custom path for images and getting the error while using absolute path for images
See original GitHub issueRemove any following parts if does not have details about
Unable to see images on IDE while using custom path for images and getting the error while using absolute path for images
I am facing two kinds of issue, Whenever I use custom path for images which I am going to use in a script.
I dont want to store all images in .air folder and i want to use one custom path. So that I can use same image for multiple scripts.
- When I declared path for image library in script, for e.g.suppose C:/ABC/ABC path for image library, (in this folder I stored all the images)
I use the following format for WAIT or TOUCH action
for example:
image_path = C:/ABC/ABC
touch(Template(image_path+ “killapps_icon_homescreen.png”, threshold=0.8, target_pos=5, rgb=True, record_pos=(-0.392, 0.531), resolution=(1440, 2560)))
This syntax works but then I can’t see image on the airtestIDE screen
Also whenever I reopened this .air file in airtest IDE, the (") double quotation mark disappeared which present after .png text
- Another problem is I can’t use absolute path for images. like for following sample code -
touch(Template(absolute_path_of_image, threshold=0.8, target_pos=5, rgb=True, record_pos=(-0.392, 0.531), resolution=(1440, 2560)))
Is there anything wrong with above syntax?
Kindly check images for more information.
Screenshots
python version: python2.7
airtest version: 1.0.00
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Hello @yimelia, Thank you for the reply. Yes issue has been fixed and now I can use the mentioned syntax
But can you tell me about images I can’t see image on the airtestIDE screen like when used default syntax.
How can I display the image also on Airtest IDE?
If you want I can create new issue for this and we can close this issue. let me know thank you
hi @SUDARSHANCHAUDHARI , sorry, AirtestIDE use a fixed image name template (tpl\d+.png), only the image which is matching the template and in the .air directory will be displayed.