[Sikuli-driver] [Question #692245]: checking the time of an event
New question #692245 on Sikuli: https://answers.launchpad.net/sikuli/+question/692245 I need to select a file in my application and need to check the file selection is logged in the application log file with date and Time . How to check this using sikuli -- You received this question notification because your team Sikuli Drivers 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
Re: [Sikuli-driver] [Question #689581]: assert(function name)
Question #689581 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689581 Status: Needs information => Solved Sreelekshmi confirmed that the question is solved: Hi Manfred, Its working , I just had to restart the sikuli. Thanks :-) -- You received this question notification because your team Sikuli Drivers 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
Re: [Sikuli-driver] [Question #689581]: assert(function name)
Question #689581 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689581 Sreelekshmi gave more information on the question: def Enable(obj1,obj2): m=findBest(obj1,obj2) m.getIndex(),m.getScore() print(m.getIndex(),m.getScore()) if m.getIndex()==0: print("Button is Enabled") return True else: print("Button is not enabled.") return False class Test(unittest.TestCase): def test01(): assert(Enable(obj1,obj2)) assert always fail -- You received this question notification because your team Sikuli Drivers 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
Re: [Sikuli-driver] [Question #689581]: assert(function name)
Question #689581 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689581 Status: Needs information => Open Sreelekshmi gave more information on the question: def Enable(obj1,obj2): m=findBest(obj1,obj2) m.getIndex(),m.getScore() print(m.getIndex(),m.getScore()) if m.getIndex()==0: print("Button is Enabled") return True else: print("Button is not enabled.") return False class Test(unittest.TestCase): def test01(): assert(Enable(obj1,obj2)) assert always fail -- You received this question notification because your team Sikuli Drivers 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
Re: [Sikuli-driver] [Question #689581]: assert(function name)
Question #689581 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689581 Status: Answered => Open Sreelekshmi is still having a problem: sorry I missed that, my function returns true or false . Still assert always fails. -- You received this question notification because your team Sikuli Drivers 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
[Sikuli-driver] [Question #689581]: assert(function name)
New question #689581 on Sikuli: https://answers.launchpad.net/sikuli/+question/689581 In my function module having a function, def Enable(obj1,obj2): m=findBest(obj1,obj2) m.getIndex(),m.getScore() print(m.getIndex(),m.getScore()) if m.getIndex()==0: print("Button is Enabled") else: print("Button is not enabled.") In another module where class is defined I am importing this module and asserting the functions import function module name class Test(unittest.TestCase): def test01(): assert(Enable(obj1,obj2)) The assert always resulting as failed eventhough it is supposed to be passed. Please note that for the functions using if exists(image) , assert is working as expected. -- You received this question notification because your team Sikuli Drivers 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
Re: [Sikuli-driver] [Question #689511]: Enabled and disabled Button
Question #689511 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689511 Status: Answered => Solved Sreelekshmi confirmed that the question is solved: Thank you so much Raiman. It works perfectly. -- You received this question notification because your team Sikuli Drivers 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
[Sikuli-driver] [Question #689511]: Enabled and disabled Button
New question #689511 on Sikuli: https://answers.launchpad.net/sikuli/+question/689511 Is there a way to check a button whether its enabled or disabled . I have tried pattern("buttonEnabled").exact().Not working. Using Sikuli1.1.4. -- You received this question notification because your team Sikuli Drivers 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
Re: [Sikuli-driver] [Question #689020]: Checking shortcut keys for opening a tool window
Question #689020 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689020 Status: Solved => Open Sreelekshmi is still having a problem: hover(AddChassis) keyDown(KeyModifier.ALT) type("ma") keyUp(KeyModifier.ALT) wait(3) assert search(AddChassisWindow),"AddChassisWindow is not found" still not working , not sure . I am using 1.1.4 version -- You received this question notification because your team Sikuli Drivers 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
Re: [Sikuli-driver] [Question #689020]: Checking shortcut keys for opening a tool window
Question #689020 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689020 Status: Answered => Solved Sreelekshmi confirmed that the question is solved: hover(AddChassis) keyDown(KeyModifier.ALT) type("ma") keyUp(KeyModifier.ALT) wait(3) assert search(AddChassisWindow),"AddChassisWindow is not found" still not working , not sure . I am using 1.1.4 version -- You received this question notification because your team Sikuli Drivers 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
[Sikuli-driver] [Question #689020]: Checking shortcut keys for opening a tool window
New question #689020 on Sikuli: https://answers.launchpad.net/sikuli/+question/689020 def shortcut(): type(Key.CAPS_LOCK) type(Key.ALT+"m"+"a") wait(5) if exists(ToolWindow): print("shortcutkeys are working") return True else: return False Can someone please help why its not working in Sikuli1.1.4 -- You received this question notification because your team Sikuli Drivers 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
Re: [Sikuli-driver] [Question #679317]: organising images and functions in different scripts in sikuli
Question #679317 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679317 Status: Answered => Open Sreelekshmi is still having a problem: still have same issue from sikuli import* import os import sys imagePath="C:\\Tools\\Images.sikuli" addImagePath(os.path.join(imagePath, "Images.sikuli")) from Images import* reload(Images) def Launch_app(img): if exists(img,20): doubleClick(getLastMatch()) wait(MSLS_Window,15) Launch_app(icon) [error] script [ MSLS_Functions ] stopped with error in line 7 [error] NameError ( name 'Images' is not defined ) -- You received this question notification because your team Sikuli Drivers 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
Re: [Sikuli-driver] [Question #679317]: organising images and functions in different scripts in sikuli
Question #679317 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679317 Sreelekshmi posted a new comment: I am using 1.0.1, cant upgrade the version as some dependency -- You received this question notification because your team Sikuli Drivers 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
Re: [Sikuli-driver] [Question #679317]: organising images and functions in different scripts in sikuli
Question #679317 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679317 Status: Solved => Open Sreelekshmi is still having a problem: Hi Raiman, Faced another issue . below code giving error at line 7 for reload [error] script [ MSLS_Functions ] stopped with error in line 7 [error] NameError ( name 'Images' is not defined ) import os import sys from sikuli import* imagePath="C:\\Tools\\Images.sikuli" addImagePath(imagePath) from Images import* reload(Images) def Launch_app(): if exists(icon): doubleClick(icon) Launch_app() -- You received this question notification because your team Sikuli Drivers 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
Re: [Sikuli-driver] [Question #679317]: organising images and functions in different scripts in sikuli
Question #679317 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679317 Sreelekshmi confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because your team Sikuli Drivers 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
Re: [Sikuli-driver] [Question #679317]: organising images and functions in different scripts in sikuli
Question #679317 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679317 Status: Open => Solved Sreelekshmi confirmed that the question is solved: Hi Raiman, Faced another issue . below code giving error at line 7 for reload [error] script [ MSLS_Functions ] stopped with error in line 7 [error] NameError ( name 'Images' is not defined ) import os import sys from sikuli import* imagePath="C:\\Tools\\Images.sikuli" addImagePath(imagePath) from Images import* reload(Images) def Launch_app(): if exists(icon): doubleClick(icon) Launch_app() -- You received this question notification because your team Sikuli Drivers 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
Re: [Sikuli-driver] [Question #679317]: organising images and functions in different scripts in sikuli
Question #679317 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679317 Status: Solved => Open Sreelekshmi is still having a problem: Hi Raiman, Faced another issue . below code giving error at line 7 for reload [error] script [ MSLS_Functions ] stopped with error in line 7 [error] NameError ( name 'Images' is not defined ) import os import sys from sikuli import* imagePath="C:\\Tools\\Images.sikuli" addImagePath(imagePath) from Images import* reload(Images) def Launch_app(): if exists(icon): doubleClick(icon) Launch_app() -- You received this question notification because your team Sikuli Drivers 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
Re: [Sikuli-driver] [Question #679317]: organising images and functions in different scripts in sikuli
Question #679317 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679317 Status: Answered => Solved Sreelekshmi confirmed that the question is solved: Many Thanks Raiman. It has simplified the whole process. -- You received this question notification because your team Sikuli Drivers 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
[Sikuli-driver] [Question #679317]: organising images and functions in different scripts in sikuli
New question #679317 on Sikuli: https://answers.launchpad.net/sikuli/+question/679317 I have all images in a folder say 'Images.sikuli' with an empty Images.py file. Now I have created another sikuli script lie below to assign variables to images import os import sys myPath = os.path.dirname(getBundlePath()) if not myPath in sys.path: sys.path.append(myPath) imagePath="C:\Tools\Images" sys.path.append(imagePath) import Images reload(Images) icon='' ##UI TEST## UI={} UI ["icon"]=" shortcut icon.png"# this image is in imported images file . just assgning the name icon to this image this file will have only images with assigned names Now I have written another sikuli script to define functions using this image import os import sys Path = os.path.dirname(getBundlePath()) if not Path in sys.path: sys.path.append(Path) from UI_Images import* reload(UI_Images) def Launch_app(img): if exists(img): doubleClick(img) Launch_app(icon) resulting in an error [error] Region.find(text): text search is currently switched off [error] Region.exists: seems that imagefile could not be found on disk can you please help -- You received this question notification because your team Sikuli Drivers 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
Re: [Sikuli-driver] [Question #678260]: How to type Keys in sikuli
Question #678260 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678260 Status: Answered => Open Sreelekshmi is still having a problem: Thanks. type(Key.ALT+”m”+”a” ) will do . On Fri, 1 Feb 2019 at 4:57 PM, masuo wrote: > Your question #678260 on Sikuli changed: > https://answers.launchpad.net/sikuli/+question/678260 > > Status: Open => Answered > > masuo proposed the following answer: > There is a document. > https://sikulix-2014.readthedocs.io/en/latest/keys.html > > -- > If this answers your question, please go to the following page to let us > know that it is solved: > https://answers.launchpad.net/sikuli/+question/678260/+confirm?answer_id=0 > > If you still need help, you can reply to this email or go to the > following page to enter your feedback: > https://answers.launchpad.net/sikuli/+question/678260 > > You received this question notification because you asked the question. > -- Best wishes, Sree. You received this question notification because your team Sikuli Drivers 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
[Sikuli-driver] [Question #678260]: How to type Keys in sikuli
New question #678260 on Sikuli: https://answers.launchpad.net/sikuli/+question/678260 How can I type the keys ALT+M+A in sikuli -- You received this question notification because your team Sikuli Drivers 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
[Sikuli-driver] [Question #678227]: How to check a list of buttons with assert in a function
New question #678227 on Sikuli: https://answers.launchpad.net/sikuli/+question/678227 I need to check 5 buttons in my UI for tooltip . Need to verify that no tooltip for any of the button . how to write a single function for all buttons with assert for each button .Can we avoid writing if exists and hover for each button . -- You received this question notification because your team Sikuli Drivers 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
Re: [Sikuli-driver] [Question #677290]: Order of functions called in Sikuli
Question #677290 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/677290 Status: Answered => Solved Sreelekshmi confirmed that the question is solved: Agree its not related to sikulix. But want to share what I found. in this case the functions are run in the order of function names. so name your functions accordingly def_test_a_name def_test_b_name def_test_c_name -- You received this question notification because your team Sikuli Drivers 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
[Sikuli-driver] [Question #677290]: Order of functions called in Sikuli
New question #677290 on Sikuli: https://answers.launchpad.net/sikuli/+question/677290 class Test_a(unittest.TestCase): def test_A(self): print("abc") ... .. def test_Z(self): .. suite = unittest.TestLoader().loadTestsFromTestCase(Test_a) outfile = open("C:\Tools\sree.html", "w") runner = HTMLTestRunner.HTMLTestRunner(stream=outfile, title='Test Report', description='This is demo' ) runner.run(suite) outfile.close() q1. How to ensure my functions are executed in the order from A TO Z. q2. whats the error .EEE...E.E Time Elapsed: 0:01:03.349000 -- You received this question notification because your team Sikuli Drivers 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
Re: [Sikuli-driver] [Question #176005]: [HowTo] Nice unit test runner with html output
Question #176005 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/176005 Sreelekshmi posted a new comment: Can you please tell me about this error in Sikuli EEE Time Elapsed: 0:00:00.007000 -- You received this question notification because your team Sikuli Drivers 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
Re: [Sikuli-driver] [Question #176005]: [HowTo] Nice unit test runner with html output
Question #176005 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/176005 Sreelekshmi posted a new comment: Can you please share the modified HTMLTestRunner.py to include screenshot. -- You received this question notification because your team Sikuli Drivers 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