Что нового

Клик по форме для текста

nmka123

Новичок
Сообщения
1
Репутация
0
Добрый день. Всё не могу заставить кликать на неактивную форму для текста.

Код:
<textarea class="uiTextareaAutogrow input autofocus mentionsTextarea textInput DOMControl_placeholder" title="О чем вы думаете?" name="xhpc_message_text" placeholder="О чем вы думаете?" role="textbox" aria-autocomplete="list" autocomplete="off" aria-expanded="false" aria-owns="typeahead_list_u_0_y" aria-haspopup="true" onkeydown="run_with(this, [&quot;legacy:control-textarea&quot;], function() {TextAreaControl.getInstance(this)});" id="u_0_z" aria-label="О чем вы думаете?">О чем вы думаете?</textarea>

Код:
Local $oForm = _IEFormGetObjByName($oIE, "u_0_z")
Local $oQuery = _IEFormElementGetObjByName($oForm, "xhpc_message_text")
_IEFormElementSetValue($oQuery, "AutoIt IE.au3")
_IEFormSubmit($oForm)
 

DarWiM

Продвинутый
Сообщения
527
Репутация
90
nmka123
Код:
Local $oQuery = _IEGetObjByName($oIE, "xhpc_message_text")
$oQuery.value = "AutoIt IE.au3"
_IEAction($oQuery, "click")
 
Верх