Jump to content
golfinhu

IE get element without id or name

Recommended Posts

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">

Share this post


Link to post
Share on other sites
Posted (edited)

loop through all inputs, and match using .getattribute("tb-ted-id") to match the text you desire.

 

Edited 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.

Share this post


Link to post
Share on other sites

Hi, thanks for your reply.

 

to I get all the elements I need to use the Documents.All, right?

 

I will try it.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...