trekker Posted February 25, 2015 Share 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 Link to comment Share on other sites More sharing options...
junkew Posted February 25, 2015 Share 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 Link to comment Share on other sites More sharing options...
trekker Posted February 25, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
junkew Posted February 26, 2015 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now