Sikuli is not recognize the image but earlier it was recognizing it - sikuli

I am using the sikuli with java and eclipse IDE. I have captured some images and created a repository of images. My code was working fine with captured images and I was able to login into my Desktop Application and able open a project. But now after few days, sikuli is not recognizing those captured images Please help me out
https://answers.launchpad.net/sikuli/+question/289295

Here I list some possible reasons:
Have you changed the screen resolution?
As SnakeFoot mention, if you're using click over the desktop and you have changed your background image, the images could been changed.
PD: Sorry, my english is not perfect.

Related

Chrome/Selenium: use-file-for-fake-video-capture not working anymore

I have automated ui-tests that test a web application in chrome using https://theintern.io/
The application offers a barcode scanner using the device camera (https://github.com/zxing/zxing).
To test this feature, a fake barcode is shown to the application, this has worked until chrome version 90/91 (not quite sure anymore).
Since this version I can not access the fake video anymore.
Chrome-options I have set:
use-fake-device-for-media-stream
use-fake-ui-for-media-stream
`use-file-for-fake-video-capture=${fakeVideoFilePath}`
I can reproduce this outside of the application if I use the chrome window configured with selenium and go to
https://webcamtests.com/
This loads forever - same thing happens inside the application.
The webcam name is the path to the video the camera is supposed to show.
Any hints on what is causing this problem or how it can be solved?
Thanks!
Fixed with Chrome 93.
After the update it is just working again.

Why is my published website deformed when my unpublished version of the same website perfect?

so I have created a webpage using html and css called https://www.printt.us. When I run the code before I publish it, it looks fine. However, when I publish it, it is completely deformed. This is not a local issue because it affects a lot of other people that have viewed my webpage too. Does anyone know a fix for this?

Video is not playing in one iPad specifically

I am developing an app for iOS which includes a UIWebView which, among other this, contains a video (stored locally, in the same folder as some images which are being displayed correctly).
This works fine in my own iPad, but I have been given another one at work to install the app to and there it shows nothing more than the video controls. When I click on the play button nothing happens. The iPad is owned by the company so any security feature might be enabled.
I have researched quite a lot and I cannot find any reasons why the app may be working on one iPad and not on another one. I know it might be impossible to fix without having a passcode or something like that but I need to know at least which configuration might be the one that is making the app not to work.
Using WKWebView fixed it. UIWebView should not be used any longer unless it is specifically needed.
From Apple documentation:
In apps that run in iOS 8 and later, use the WKWebView class instead of using UIWebView. Additionally, consider setting the WKPreferences property javaScriptEnabled to false if you render files that are not supposed to run JavaScript.

resize images for cordova mobile application based on detected device

I'v built a cordova mobile application which i intend to deploy for several platforms. The problem i'm facing is images and thumbnails within the app. how to make the application detect which device is being used and based on that resize all images thumbnails and background (not only icon and splash screen) inside the application to be displayed properly?
I'v read about how this is done for native apps but if i'm gonna follow the same approach for example in android declaring a res folder for different sizes, how can i access them in my html file and pick the right size for the right mobile device? i want this to be tested in emulator how can i automate the process?
take it easy on me it's my first app :)

How to view a pdf file in the browser,when clicking on a link

I have developed an application using HTML 5. To make the application compatible with the mobile devices I have used cordova/phonegap.
Now the problem is that, the PDf files which is there inside the application is only getting downloaded, when clicked on the link. I need to get it opened in the browser, when clicked on the link. It works fine with the PC. But not with the mobile devices.
I stored the link to a variable and passed that variable to google. Now using some sort of services from google, the link is getting opened in the browser.
I tried installing inAppbrowser plugin also.
window.open(Furl, '_system', 'location=yes');
This was the line of code used, where Furl is the name of the variable, into which, the url address of the pdf file is passed.
This line of code works fine, when url address of a webpage is passed to the variable. But not with the pdf files.
Apart from that idea, is there any other solution for this problem?
Can someone help me out with this problem?
-Thank you
As stated already on a comment, it is possible on modern browser since they have in-built PDF viewer. This isn't the case for Android or iOS currently. What you could do is to convert the PDF to PNG image and then show that. There is a PDF2PNG plugin available for this purpose. Also, if you only need to support iOS 6 & 7, you can take a look at the PDF Viewer plugin.