Gather screenshots using ruby/watir-webdriver and use them with if exists(path to image taken by webdriver)
Would like to be able to gather screenshots using ruby/watir-
webdriver has some simple method for saving a screenshot
browser.
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
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: