Contributions
I want to delete the input file that is in a data loop - I get the error stating the file is in use.
How do I make TestComplete release the input file so it can be deleted? I use Python code for the delete code (which works) but if I run the program with the input file and then try to delete the file I get the error : The process cannot access the file because it is being used by another process. The file type is an Excel file. The file is downloaded from SharePoint and then used as an input file. The file needs to be deleted after the program runs so the next run can use the new file (same name) which has been updated with new data. I looked for a close command with aqFile & aqfileSystem but didn't find it in the documentation. The delete script is after the EOF has been reached. Please help!1KViews0likes5CommentsRe: Compare logos on pages
Thank you Marsha. Unfortunately, there is only 1 in 40 that are in compliance. That solution would make the script maintenance intense and static. Need to be able to dynamically check each page (80 pages). As it is, the URLs to the pages changes too often and we have a check for valid URL as well. I appreciate all of your help!1.3KViews0likes0CommentsRe: Compare logos on pages
Was the screenshot helpful? I am providing additional information that might help with providing a solution: All of our 40 institutions are required by law to place a logo on 2 of their web pages – distance learning and advising - that we provide to them. We give them the image (logo) and they place it on their pages. There are 3 acceptable logos/banners on our website: https://www.floridashines.org/fs-catalog-banners Here is an institution website that is in compliance: https://www.hccfl.edu/academics/hcc-online (If you notice none of the attributes/elements/properties are the same). Using this documentation: Finding an Image on a Web Page Searching for an HTML element displaying the desired image We tried various ways do find the image on the pages but because the image name is not the same for each website or the size is different, the location varies, the id is different, etc. , find an image using "Searching for an HTML element displaying the desired image" doesn’t seem to be the way to go. We used the sample code using python provided in the documentation for Searching for the desired image using picture comparison We then did picture in a picture to compare the image of the logo but still come up with image not found. We may have something not coded correctly I am thinking this must be the way to go since all of the webpages will be different but the image will be the same except size and coloring may be different. The only thing constant is the text on the image. I am thinking of another option - OCR recognition to just find the text on the image. Can that been done if we can’t get picture in a picture to work? Could the web page be the object and then do the OCR Checkpoint for just the text on the image? Or will the image object have to be identified on the page?1.3KViews0likes2Comments- 1.3KViews0likes0Comments
Re: Compare logos on pages
I added them to the stores. When I did a compare, I had to give a location on the page. The logo is not in a fixed location on the page. It can be anywhere. So I was trying a different approach, make each logo a variable and check on the alias browser/page anduse the if object is visible. I couldn't figure out how to do it with the picture compare and region checkpoint.1.8KViews0likes10Comments