← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #197294]: Can Sikuli Methods be Overridden?

 

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

Ryan posted a new comment:
One of the reasons we did this was to intentionally block the global
undotted methods. The way our testing and framework are set up already
removes the ability to run modules as scripts, but further, the
flexibility needed requires a structure similar to the page-object
model. We create a hierarchy of regions (ex: Screen > Browser >
Applications> header, footer, navigation, page > selector frame >
checkbox) Each region only knows the region given to it and what
components to look for within itself. This means every component uses
self.xyz to manipulate the region.

Using the Java region still gives me the same issues, so I think I'm
going to fore-go the polymorphism and just implement a
switchCheckbox(status) method that utilizes click.

I did initially have every class contain a region attribute containing
the sikuli region, however as I started organizing some of our types
things started getting wordy and in some cases did not make sense. Up
until now when I wanted to store the status of the checkbox I hadn't
noticed any issues with the inheritance, which is why I assumed it was
possible.

Thanks!!

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.