← Back to team overview

sikuli-driver team mailing list archive

[Question #206161]: Would like to be able to gather screenshots using ruby/watir-webdriver to save images to a file then insert the path to them into sikuli using variables, i.e. if exists(path to image taken by webdriver) is this sort of thing possible?

 

New question #206161 on Sikuli:
https://answers.launchpad.net/sikuli/+question/206161

Would like to be able to gather screenshots using ruby/watir-webdriver to save images to a file then insert the path to them into sikuli using variables, i.e. if exists(path to image taken by webdriver) is this sort of thing possible?

webdriver has some simple method for saving a screenshot 
browser.screenshot.save 'testscreenshot.png'

this I should be able to then set as a variable and save the list of variables to a spreadsheet

how do i then pass these variables (paths to image) into my sikuli script 

this would be most helpful for completely automating a screenshot comparison test at our company 

(btw, we have a framework based on watir-webdriver that includes sikuli support, meaning we can call out sikuli tests from within a webdriver test" 


Goal, to have a script to open a webpage, navigate to an element I need a screenshot of, take screenshot, save path as variable to be using in our sikuli script, size browser, take another SH, repeat process with a couple times at various sizes. 

then later, another script would set the initial sikuli script variables for the baseline tests. 

then another webdriver script to open the image in a browser and call the associated sikuli script with the baseline image to verify the images still match. 


p.s. I know this is alot but I think I just need to know a couple things. Can sikuli read a spreadsheet file? Can I set the path to an image in, lets say the exist function, to a variable in the sikuli IDE? 

needless to say I'm newer with python and sikuli, any help would be absolutely amazing 

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