sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #16866
Re: [Question #223180]: How to read windows file properties?
Question #223180 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/223180
Shawn Robertson posted a new comment:
Actually forget the above comment.
Ideally I need to read/stream in specific elements and assert them.
I need to stream/read File version from the version tab and verify that
its proper against supplied variable value.
i did write a quick little:
SCR0 = Screen(0)
SCR1 = Screen(1)
type("timeslip.exe")
wait(3)
keyDown(Key.ALT)
type(Key.ENTER)
keyUp(Key.ALT)
if SCR0.exists("Timeslip-1.png") or SCR1.exists("Timeslip-1.png"):
wait(1)
type(Key.TAB, KeyModifier.CTRL)
type(Key.TAB, KeyModifier.CTRL)
type(Key.TAB, KeyModifier.CTRL)
type(Key.TAB, KeyModifier.CTRL)
wait(1)
assert exists(version.png)
but this wont work because the version will always change every time i perform an installation and I cant keep changing the png file so it looks like i need to stream in the correct value and compare i believe.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.