Highlighted
Absent Member.
Absent Member.
381 views

UFT : Problem with a hidden weblist


Good morning,

Since 6 days, I'm trying the UFT new trial version 14.
And I have a problem with my script I didn't have with the QTP v10.

My script doesn't work because a weblist remains hidden.

Here's my script:

' When UFT insert the DataTable's value of Var1 in WebNumber:
Browser("Bowser Name").Page("Page Name").WebNumber("Var1").Set DataTable("Var1", dtGlobalSheet)

' The Var2's WebList remains hidden.

' So I can't insert in Weblist the DataTable's value of Var2:
Browser("Bowser Name").Page("Page Name").WebList("Var2").Select DataTable("Var2", dtGlobalSheet)

Please note that's the same problem with I.E and Chrome .

with the QTP v10 I used VBScript SendKeys Method to solve the problem.
Dim mySendKeys
set mySendKeys = CreateObject("WScript.shell")
mySendKeys.SendKeys “{ENTER}”
Set mySendKeys = nothing

This solution doesn't work with UFT 14.
Do you know how can I do to solve my problem?


Here's the part of HTML source's code :
<div class="formRow formRow570">
<div class="formRow formRow120">
<p id="q_cp">Var1</p>
<div class="formItem4" ><input type="number" maxlength="5" min="0" max="99999" typeInput="Var1" id="Var1" tabIndex="8" libErreur="the Var1" required="true" name="Var1" /></div>
</div>
<span class="pu-load"><img src="https://loading.gif" border="0"/></span>
<div class="formRow formRow450 jsCommuneManaged">
<p>Var2</p>
<div class="formItem2"><select class="question" id="Var2" tabIndex="8" libErreur="the Var2" required="true" name="Var2"><option value="" selected="selected" disabled="disabled" >Sélectionnez</option></select></div>
<input type="hidden" typeInput="hidden" id="H_CDCOIN" />
</div>
</div>

Thanks,

Jean Petit

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.