golfinhu Posted April 11, 2019 Share Posted April 11, 2019 Hi, Guys I'm trying to make a login in one website, but, in the textbox element don't have id, classname, and name. There's another way to get this element? I tried to use the id in the "tb-ted-id" attribute, but it doesn't work. Thanks. <input type="text" min="" max="" match-data="" placeholder="Username" title="Username" ng-disabled="disabled" ng-required="required" ng-model="textValue" ng-model-options="options || {}" ng-keydown="keydown({$event: $event})" tb-enter="modelCtrl.$commitViewValue(); onEnter({$event: $event}); triggerEnter()" ng-paste="onPaste()" tb-auto-select="autoSelect" tb-focus="focus" tabindex="0" tb-test-id="textbox-username-input" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" ng-trim="true" class="tb-text-box-input tb-enable-selection ng-not-empty ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched" name="username" required="required"> Link to comment Share on other sites More sharing options...
jdelaney Posted April 11, 2019 Share Posted April 11, 2019 (edited) loop through all inputs, and match using .getattribute("tb-ted-id") to match the text you desire. Edited April 11, 2019 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
golfinhu Posted April 11, 2019 Author Share Posted April 11, 2019 Hi, thanks for your reply. to I get all the elements I need to use the Documents.All, right? I will try it. Link to comment Share on other sites More sharing options...
jdelaney Posted April 11, 2019 Share Posted April 11, 2019 _IETagNameGetCollection _IETagNameGetCollection IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
golfinhu Posted April 11, 2019 Author Share Posted April 11, 2019 Thanks a lot 😃 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