yinkaisheng / Python-UIAutomation-for-Windows

🐍Python 3 wrapper of Microsoft UIAutomation. Support UIAutomation for MFC, WindowsForm, WPF, Modern UI(Metro UI), Qt, IE, Firefox, Chrome ...
Apache License 2.0
2.5k stars 477 forks source link

GetGridPattern().GetItem() takes 1 positional argument but 3 were given #214

Open erikapapp opened 2 years ago

erikapapp commented 2 years ago

itemValue = element.item.GetGridPattern().GetItem(1,1) return an error: TypeError: GetItem() takes 1 positional argument but 3 were given .

The element.item.GetGridPattern() code return a GridPattern object <uiautomation.uiautomation.GridPattern object at 0x0000024CE9A639C8>

Could you please help what could be the issue? Thanks

yinkaisheng commented 2 years ago

fixed, update code or use latest uiautomation 2.0.17