← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #272592]: Detecting videos on webpages

 

Question #272592 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272592

    Status: Open => Answered

RaiMan proposed the following answer:
You should in the first place look for whether this can be solved with
Selenium.

With SikuliX possible approaches to minimize the background risk:
1. take care, that the shots contain as little background as possible towards the edges
2. restrict the search area as much as possible as to where the visual is expected to be (e.g relative to visuals that can be found in any case)
3. if background is visible inside the visual caused by some transparency, you have to lower the expected similarity to a suitable value. together with 1 and 2, this should work in most cases. When there is a risk, to get false positives, you might use findAll(), walk through the matches and check them somehow.

A general option with SikuliX always is, to find out the geometry of the respective GUI, either statically (measured before) or dynamically based on finding key visuals and calculating the rest.
This should lead you to the needed click points.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.