Jump to content
Sign in to follow this  
Ebola57

[Solved] Capturing <INPUT> Tag w/o name and id

Recommended Posts

Hi community

I am intending to send text in an input box that lacks of both id and name (code below)

<input class="form-control ng-pristine ng-valid ng-empty ng-touched" role="textbox" aria-invalid="false" type="text" ng-model="c.shortDescription"></input>

Since then I have great difficulties to catch it :(

I tried to catch it with "ng-model" directive (that is unique in my page), but I got a syntax error as autoit missunderstand this

For $oTag In $oTags
    If $oTag.Ng-model = "c.shortDescription" Then ExitLoop
Next
_IEAction($oTag, "click")

May you have some idea to catch this tag ?

Regards

Edited by Ebola57

Share this post


Link to post
Share on other sites

Try something like

$oTag.getAttribute("ng-model") = "c.shortDescription"

or

 $oTag.ClassName = "form-control ng-pristine ng-valid ng-empty ng-touched"

 

Share this post


Link to post
Share on other sites
$oTag.getAttribute("ng-model") = "c.shortDescription"

Worked flawlessly

$oTag.ClassName = "form-control ng-pristine ng-valid ng-empty ng-touched"

Didn't work, anyway previous one fits my needs :)

Thanks a lot ;)

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...