Micro Focus QTP (UFT) Forums
Firefox and Weblist - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Firefox and Weblist (/Thread-Firefox-and-Weblist)



Firefox and Weblist - XeNoMoRpH - 09-17-2009

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?


RE: Firefox and Weblist - Saket - 09-18-2009

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?


RE: Firefox and Weblist - XeNoMoRpH - 09-18-2009

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>



RE: Firefox and Weblist - dburgueno - 09-24-2009

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