{"action":"created","issue":{"url":"https://api.github.com/repos/pywinauto/pywinauto/issues/256","repository_url":"https://api.github.com/repos/pywinauto/pywinauto","labels_url":"https://api.github.com/repos/pywinauto/pywinauto/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/pywinauto/pywinauto/issues/256/comments","events_url":"https://api.github.com/repos/pywinauto/pywinauto/issues/256/events","html_url":"https://github.com/pywinauto/pywinauto/issues/256","id":186087262,"number":256,"title":"Any possibility to make backend uia faster","user":{"login":"nimuston","id":20014724,"avatar_url":"https://avatars.githubusercontent.com/u/20014724?v=3","gravatar_id":"","url":"https://api.github.com/users/nimuston","html_url":"https://github.com/nimuston","followers_url":"https://api.github.com/users/nimuston/followers","following_url":"https://api.github.com/users/nimuston/following{/other_user}","gists_url":"https://api.github.com/users/nimuston/gists{/gist_id}","starred_url":"https://api.github.com/users/nimuston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nimuston/subscriptions","organizations_url":"https://api.github.com/users/nimuston/orgs","repos_url":"https://api.github.com/users/nimuston/repos","events_url":"https://api.github.com/users/nimuston/events{/privacy}","received_events_url":"https://api.github.com/users/nimuston/received_events","type":"User","site_admin":false},"labels":[{"id":276422727,"url":"https://api.github.com/repos/pywinauto/pywinauto/labels/UIA-related","name":"UIA-related","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-10-29T16:27:19Z","updated_at":"2016-11-01T19:51:20Z","closed_at":null,"body":"i have a very simple script that click few buttons in calculator app. If I use backend win32 executing script takes about 16 sec, but if I use backend uia same script takes 1 min 35 sec. Below examples scripts. Each script is executed 4 times.\n\nscript below uses buttons text to find it\n\n```\napp = Application()\nappconnect = app.connect(title='Calculator')\napp_dlg = appconnect.top_window_()\napp_dlg.window_(best_match='3').Click()\n```\n\nscript below uses buttons automatinID\n\n```\napp = Application(backend='uia')\nappconnect = app.connect(title='Calculator')\napp_dlg = appconnect.top_window_()\napp_dlg.child_window(auto_id='button5').click_input()\n```\n"},"comment":{"url":"https://api.github.com/repos/pywinauto/pywinauto/issues/comments/257675169","html_url":"https://github.com/pywinauto/pywinauto/issues/256#issuecomment-257675169","issue_url":"https://api.github.com/repos/pywinauto/pywinauto/issues/256","id":257675169,"user":{"login":"vasily-v-ryabov","id":7419086,"avatar_url":"https://avatars.githubusercontent.com/u/7419086?v=3","gravatar_id":"","url":"https://api.github.com/users/vasily-v-ryabov","html_url":"https://github.com/vasily-v-ryabov","followers_url":"https://api.github.com/users/vasily-v-ryabov/followers","following_url":"https://api.github.com/users/vasily-v-ryabov/following{/other_user}","gists_url":"https://api.github.com/users/vasily-v-ryabov/gists{/gist_id}","starred_url":"https://api.github.com/users/vasily-v-ryabov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasily-v-ryabov/subscriptions","organizations_url":"https://api.github.com/users/vasily-v-ryabov/orgs","repos_url":"https://api.github.com/users/vasily-v-ryabov/repos","events_url":"https://api.github.com/users/vasily-v-ryabov/events{/privacy}","received_events_url":"https://api.github.com/users/vasily-v-ryabov/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T19:51:20Z","updated_at":"2016-11-01T19:51:20Z","body":"For the child window form it's possible to use `parent` keyword in search criteria.\r\nSay you have `winform2 = app.winform1.winform2.wait('ready') # returns UiaWrapper`.\r\n\r\nThen you may create criteria so: `app.winform1.child_window(parent=winform2, control_type='Button', title='Apply')`. Yeah, it's a little bit bulky but should work. Will think about getting window specifications from wrappers as well. It might be a good idea."}}
{"actor":{"display_login":"vasily-v-ryabov"}}