rjef
asked on
VB6 webbrowser control and java script command needed.
inspect element is below
<input type="checkbox" data-role="none">
i was able to use the below vb6 code/java to check the element checkbox
WebBrowser1.Navigate2 ("javascript:document.quer ySelectorA ll(""input "")[3].cli ck();")
now i have the below inspect element
<input name="Nameit" class="cat_item_option sc-content-pad form-control" id="Nameit" onchange="if (typeof(variableOnChange) == 'function') variableOnChange('Nameit') " maxlength="0000000000" value="">
need vb6 webbrowser control/java command enter a'Joe Smith' into the element textbox
<input type="checkbox" data-role="none">
i was able to use the below vb6 code/java to check the element checkbox
WebBrowser1.Navigate2 ("javascript:document.quer
now i have the below inspect element
<input name="Nameit" class="cat_item_option sc-content-pad form-control" id="Nameit" onchange="if (typeof(variableOnChange) == 'function') variableOnChange('Nameit')
need vb6 webbrowser control/java command enter a'Joe Smith' into the element textbox
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This worked
WebBrowser1.Document.getEl ementById( "Nameit"). value="Joe Smith"
any idea how to click on the elemement?
<span class="ui-btn-text">Ok</sp an>
WebBrowser1.Document.getEl
any idea how to click on the elemement?
<span class="ui-btn-text">Ok</sp
Try to use the click event like :
WebBrowser1.Document.query Selector(" .ui-btn-te xt").click ();
WebBrowser1.Document.query
ASKER
not valid syntax
My bad check my update in the previous comment (adding the dot '.' Before class name)
Open in new window