Micro Focus QTP (UFT) Forums

Full Version: Firefox and Weblist
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello Everyone,

I created a test for IE which works just fine. It didn't work 100% in Firefox (more like 30%), so I just created a copy and modified it for Firefox. Everything is working great except for the Weblist. I have a selection box (aka Weblist) where I just select the first object. It gives me the following error:

General run error.
Line (2): ".WebList("name:=MySelect").Object.value = "1"".

Here is the code:
Code:
With Browser("title:=MyTitle.*").Page("title:=MyTitle.*").Frame("name:=MyFrame")
    .WebList("name:=MySelect").Object.value = "1"
End With

Any thoughts?
Try using the index of item in weblist with .Select method

Code:
With Browser("title:=MyTitle.*").Page("title:=MyTitle.*").Frame("name:=MyFrame")
    .WebList("name:=MySelect").Select= "#1"
End With
does this works?
No, it didn't seem to care for that either. Here are the options within the select:

Code:
<option value=" "> </option>
<option value="1">1 USDA FS   </option>
<option value="2">2 USDI BLM  </option>
<option value="3">3 USDI NPS  </option>
<option value="4">4 USDI BIA  </option>
<option value="5">5 STATE     </option>
<option value="6">6 LOCAL GOVT</option>
<option value="7">7 PVT/COMMRL</option>
<option value="8">8 OTH FEDERL</option>
<option value="9">9 UNKNOWN   </option>
I have the same problem, I'm using Firefox and I try to select a weblist and I get a "General run error." I had tried using the option Object.value and .Select but both functions are not working, please if you now something about this please tell me