Valnurat Posted June 3, 2013 Share Posted June 3, 2013 (edited) Hi I'm trying to select the content in a dropdown menu in the internet explorer, see attachment, but it is teasing me. I know I have to pick "enGB" I can only see this: <TR> <TD class="width-40 tableLayoutLabel">Data presentation locale:</TD> <TD class="width-60 tableLayout2"><SPAN id=modalCreateForm:presentationLocale-outer class="framed inline input required input-t-combobox" tabIndex=0 jQuery15105108932362495449="60" data-max-rows="7"><SPAN class=input-icon-required></SPAN><INPUT id=modalCreateForm:presentationLocale name=modalCreateForm:presentationLocale type=hidden jQuery15105108932362495449="61"><SPAN class="value-showcase-wrapper "><SPAN class=value-showcase><select></SPAN></SPAN></SPAN></TD></TR> <TR> Edited June 3, 2013 by Valnurat Yours sincerely Kenneth. Link to comment Share on other sites More sharing options...
Valnurat Posted June 3, 2013 Author Share Posted June 3, 2013 I have tried this: $oSelect = _IEFormGetObjByName($oFormNext3,"modalCreateForm:presentationLocale") _IEFormElementOptionSelect($oSelect, "enGB") But it does notthing. Yours sincerely Kenneth. Link to comment Share on other sites More sharing options...
water Posted June 3, 2013 Share Posted June 3, 2013 Do you get any error messages in the SciTE output pane? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Valnurat Posted June 3, 2013 Author Share Posted June 3, 2013 Yes, I have tried this: $oSelect = _IEFormElementGetObjByName($oFormNext3,"modalCreateForm:presentationLocale") MsgBox(1,1,@error) $n = _IEFormElementOptionSelect($oSelect, "enGB", 1, "byValue", 1) MsgBox(1,1,$n) 1st msgbox is 7 2nd msgbox is 0 And the SciTE output pane is --> IE.au3 V2.4-0 Warning from function _IEFormElementGetObjByName, $_IEStatus_NoMatch --> IE.au3 V2.4-0 Error from function _IEFormElementOptionSelect, $_IEStatus_InvalidDataType If I use the F12=codewindows and press the arrow and point to the "ComboBox" I don't see anything. It do not have any ID or Name or anything. Don't know if the HTML source can be used, but here it is. <TD class="width-60 tableLayout2"><SPAN id=modalCreateForm:presentationLocale-outer class="framed inline input required input-t-combobox" tabIndex=0 jQuery15105108932362495449="60" data-max-rows="7"><SPAN class=input-icon-required></SPAN><INPUT id=modalCreateForm:presentationLocale name=modalCreateForm:presentationLocale type=hidden jQuery15105108932362495449="61"><SPAN class="value-showcase-wrapper "><SPAN class=value-showcase><select></SPAN></SPAN></SPAN></TD></TR> Yours sincerely Kenneth. Link to comment Share on other sites More sharing options...
Valnurat Posted June 4, 2013 Author Share Posted June 4, 2013 Do anyone have an idea? Yours sincerely Kenneth. Link to comment Share on other sites More sharing options...
Valnurat Posted June 5, 2013 Author Share Posted June 5, 2013 I do hope someone can help me? Yours sincerely Kenneth. Link to comment Share on other sites More sharing options...
Valnurat Posted June 6, 2013 Author Share Posted June 6, 2013 I have attach 2 pictures showing the source and webpage. In the source you can see what's marked. That is the "combobox" on the webpage. I hope someone can help me. Yours sincerely Kenneth. Link to comment Share on other sites More sharing options...
FrikinImpossible Posted June 6, 2013 Share Posted June 6, 2013 Try: $oForm = _IEFormGetCollection($oIE, 0) OR try this one $oForm = _IEFormGetObjByName($oIE, "autoDetectWidthForm") msgbox(-1,"", isobject($oform)) $element = _IEFormElementGetObjByName($oForm, "modalCreateForm:presentationLocale") msgbox(-1,"", isobject($element)) _IEFormElementOptionSelect($element, "enGB", 1, "byText") Link to comment Share on other sites More sharing options...
FireFox Posted June 6, 2013 Share Posted June 6, 2013 Hi,Maybe the problems come from the non-alphabetic characters. I don't know if they need to be escaped.Br, FireFox. Link to comment Share on other sites More sharing options...
Valnurat Posted June 6, 2013 Author Share Posted June 6, 2013 No matter, if I use $oForm = _IEFormGetCollection($oIE, 0) OR $oForm = _IEFormGetObjByName($oIE, "autoDetectWidthForm") the 1st msgbox says 1 2nd msgbox says 0 --> IE.au3 V2.4-0 Warning from function _IEFormElementGetObjByName, $_IEStatus_NoMatch --> IE.au3 V2.4-0 Error from function _IEFormElementOptionSelect, $_IEStatus_InvalidDataType Try: $oForm = _IEFormGetCollection($oIE, 0) OR try this one $oForm = _IEFormGetObjByName($oIE, "autoDetectWidthForm") msgbox(-1,"", isobject($oform)) $element = _IEFormElementGetObjByName($oForm, "modalCreateForm:presentationLocale") msgbox(-1,"", isobject($element)) _IEFormElementOptionSelect($element, "enGB", 1, "byText") Yours sincerely Kenneth. Link to comment Share on other sites More sharing options...
Valnurat Posted June 7, 2013 Author Share Posted June 7, 2013 I really hope someone can give some input to this. Yours sincerely Kenneth. Link to comment Share on other sites More sharing options...
Valnurat Posted June 9, 2013 Author Share Posted June 9, 2013 I kindly ask for some help to push me in the right direction. Yours sincerely Kenneth. Link to comment Share on other sites More sharing options...
Xenobiologist Posted June 11, 2013 Share Posted June 11, 2013 Can you upload the html and then describe which part you want to gather/Access via Autoit. This way it should be easy to help. Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Valnurat Posted June 11, 2013 Author Share Posted June 11, 2013 Please, see in post#7 Yours sincerely Kenneth. Link to comment Share on other sites More sharing options...
Valnurat Posted June 12, 2013 Author Share Posted June 12, 2013 Can you upload the html and then describe which part you want to gather/Access via Autoit. This way it should be easy to help. Post#7 trying to get access to Combobox in the Webpage. What you see in the Source is what marked on the webpage. Yours sincerely Kenneth. Link to comment Share on other sites More sharing options...
Valnurat Posted July 23, 2014 Author Share Posted July 23, 2014 Sorry for the late reply, but here is sourcecode, I hope. Syncron Solutions - User.htm Yours sincerely Kenneth. Link to comment Share on other sites More sharing options...
AutID Posted July 23, 2014 Share Posted July 23, 2014 #include <IE.au3> Local $oIE = _IECreate("http://www.syncron.com/") Local $oInputs = _IETagNameGetCollection($oIE, "span") Local $sText = "" For $oInput In $oInputs ConsoleWrite($oInput.class & @LF) If $oInput.class = "value-showcase" Then $sText = $oInput.innerText ;check the properties in the help files EndIf Next If $sText <> False Then ConsoleWrite("Text: " & $sText & @LF) ;do some dirty things with that text! EndIf _IEQuit($oIE) Could help. Check the help files for more informations. https://iblockify.wordpress.com/ Link to comment Share on other sites More sharing options...
Valnurat Posted July 25, 2014 Author Share Posted July 25, 2014 #include <IE.au3> Local $oIE = _IECreate("http://www.syncron.com/") Local $oInputs = _IETagNameGetCollection($oIE, "span") Local $sText = "" For $oInput In $oInputs ConsoleWrite($oInput.class & @LF) If $oInput.class = "value-showcase" Then $sText = $oInput.innerText ;check the properties in the help files EndIf Next If $sText <> False Then ConsoleWrite("Text: " & $sText & @LF) ;do some dirty things with that text! EndIf _IEQuit($oIE) Could help. Check the help files for more informations. Hi Thank you. I have tried to merge this into my existing script. This: ConsoleWrite($oInput.class & @LF) dose not give any result in console windows. It is just blank. You asked me to find the properties for this: $sText = $oInput.innerText ;check the properties in the help files, but I don't know how to look for $oInput in the helpfile. I tried to place the cursor right after the "dot" and pressed CTRL+SPACE and alot of command pops up, but not innertext. I have attach all my code so far. MyCode.au3 Yours sincerely Kenneth. Link to comment Share on other sites More sharing options...
Valnurat Posted July 25, 2014 Author Share Posted July 25, 2014 Ok. I tried this: Local $oElements = _IETagNameAllGetCollection($oIE) For $oElement In $oElements If $oElement.id Then ConsoleWrite("Text: " & "Tagname: " & $oElement.tagname & @CRLF & "id: " & $oElement.id & @CRLF & "innerText: " & $oElement.innerText& @CRLF & @CRLF) Next And the result have mulitible content: Text: Tagname: DIV id: modalCreateForm:j_idt275 innerText: User interface International settings Data presentation locale:<select> Time zone:None Language:Auto-detect Text: Tagname: DIV id: modalCreateForm:j_idt278 innerText: International settings Data presentation locale:<select> Time zone:None Language:Auto-detect Text: Tagname: TABLE id: modalCreateForm:UniqueId_j_id714 innerText: Data presentation locale:<select> Time zone:None Language:Auto-detect Not sure how I should continue with this info. Yours sincerely Kenneth. Link to comment Share on other sites More sharing options...
Valnurat Posted July 28, 2014 Author Share Posted July 28, 2014 Hope someone can help me. Yours sincerely Kenneth. 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