dadalt Posted March 12, 2018 Share Posted March 12, 2018 Hi everyone! I am learning about autoit and I have a newbie question: How can i get text from an type text object? <input tabindex="0" class="v-textfield v-widget inline-icon v-textfield-inline-icon color1 v-textfield-color1" id="gwt-uid-81" aria-labelledby="gwt-uid-80" type="text"> The entire code of this section is in the annex. I am just trying to find an easy way to get the value above: Ps: Thanks for help and I accept another suggestion to obtain this value! Link to comment Share on other sites More sharing options...
Danp2 Posted March 12, 2018 Share Posted March 12, 2018 Look at the help file entry for _IEFormElementGetValue. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
dadalt Posted March 12, 2018 Author Share Posted March 12, 2018 Ty, i will reply again as soon as I have finished it! Link to comment Share on other sites More sharing options...
dadalt Posted March 12, 2018 Author Share Posted March 12, 2018 There is no form name, just that IDs, any suggestion? Link to comment Share on other sites More sharing options...
Danp2 Posted March 12, 2018 Share Posted March 12, 2018 Once you have a reference to the desired element, you can use that function even though the element may not be contained within a form. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
jguinch Posted March 12, 2018 Share Posted March 12, 2018 Try this : $oInput = _IEGetObjById($oIE, "gwt-uid-81") $value = $oInput.value Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
dadalt Posted March 12, 2018 Author Share Posted March 12, 2018 6 minutes ago, jguinch said: Try this : $oInput = _IEGetObjById($oIE, "gwt-uid-81") $value = $oInput.value Thanks! I know it was easy I wasn`t finding it! I was trying something like this? https://www.autoitscript.com/autoit3/docs/libfunctions/_IEPropertyGet.htm Thanks everyone! 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