trekker 1 Posted February 25, 2015 i want to login to this website on Chrome using UIA wrapper. https://www.betsson.com/en/ Using SimpleSpy i try to find the username field and the password field, but i can't seem to manage this? The LOGIN button can be found using CTR + W, also the username/password text labels, but not the Input fields themself. Chrome Inspect Element gives me these elements: <input type="text" maxlength="255" id="tbUsername" data-testid="accountAreaLoginUsername" tabindex="1" autocomplete="on"> <input type="password" maxlength="255" id="tbPassword" data-testid="accountAreaLoginPassword" tabindex="2" autocomplete="off"> Is it possible to control these using UIA? otherwise i just need to hardcode some mouseclicks/keystrokes, but would rather do it nicely Share this post Link to post Share on other sites
junkew 393 Posted February 25, 2015 Did you turn on accessibility. Did you read the iuiautomation thread with tips and tricks. FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Share this post Link to post Share on other sites
trekker 1 Posted February 25, 2015 (edited) Did you turn on accessibility. Did you read the iuiautomation thread with tips and tricks. hi junkew, you are the other of the wrapper isn't? i read 25% of the thread and started Chrome using this $strChromeExeFolder="C:Program FilesGoogleChromeApplication" $strChromeStartup="https://www.betsson.com --force-renderer-accessibility" $strChromeExe=$strChromeExeFolder & "chrome.exe " afterward i run simplespy and it can't seem to find those to login fields. I assumed that if simplespy can't find it, it would be kinda difficult? EDIT noticed that SimpleSpy can pick up the input fields on Internet Explorer but not on Chrome; will do more testing/reading tomorrow! Edited February 25, 2015 by trekker Share this post Link to post Share on other sites
junkew 393 Posted February 26, 2015 Chrome://accessibility in addressbar reveals what is accessible in chrome FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Share this post Link to post Share on other sites