Question #163315 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/163315
Status: Open => Answered RaiMan proposed the following answer: The approach is ok. This snippet has to be run from command line, since only in this case you can use sys.argv. Be aware, that each Sikuli test you are running this way takes about 5 seconds startup time. If this is a problem, you have to set up a Sikuli environment, that is up and waiting and runs the tests on request. A simple solution can be setup with XML-RPC (come back if interested). It is recommended to not capture the whole screen in your step "Test Data preparation". Only capture the screen area your app is responsible for (in your case the content of a Firefox window). This might be done with support of a Sikuli script together with the respective Python modules for file handling. In the test (step 2) on the other hand, you should restrict the search to the Firefox window: # only the relevant lines ff = App("Firefox") ff.focus() # switches to FF content = ff.window() # the FF window if content.exists(Pattern(image).similar(0.91)): This makes your tests robust and faster. BTW: Since you seem to test a web app: do you use webdriver for the behavior testing? -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp