Hi Kishore, If I am using Replay Type Code then QTP is not identifying the Weblist ill the session exist, I write the code in the same way as you mentioned in your e-mail.
I checked without the Replay type(after ending the session) then QTP is able to identify the weblist. Below is the detail of Env. QTP Version : 9.5 (Trial) OS : Windows 7 Application: MS CRM 2013 Your Help is appreciable, Aneel On Wed, Jan 15, 2014 at 11:27 PM, Kishor Kumar <[email protected]> wrote: > @Aneel, > > If i understand correctly, once you select any item from dropdown, > selected value should be displayed in selection area of the listbox, > > use below code. > > > assume weblist exist in Row2 , column 3. then > ''============================================================= > Set RefList=Br().p().Webtable().childItem(row,col,"WebList",0) > > RefList.Select "#1" > RefList.FireEvent "Onclick" > ''============================================================ > if above one not working try below one. > > ''============================================================ > Setting.WebPackage("ReplayType") = 2 'Mouse > > Set RefList=Br().p().Webtable().childItem(row,col,"WebList",0) > > RefList.Select "#1" > > Setting.WebPackage("ReplayType") = 1 'Events > > ''================================================= > Regards, > Kishor > > > > On Wed, Jan 15, 2014 at 10:31 PM, aneel pal <[email protected]> wrote: > >> Hi Kishore, >> >> I am getting same result if am using property "Value". >> >> *innerhtml:* <option title=""></option><option title="Blue" >> value="2">Blue</option><option title="Red" value="1">Red</option><option >> title="Green" value="3">Green</option><option title="Yellow" >> value="4">Yellow</option><option title="Amber" >> value="5">Amber</option><option title="White" value="6">White</option> >> >> *outerhtml : *<select tabindex="-1" title="" class="ms-crm-SelectBox >> ms-crm-Inline-OptionSet-AutoOpen" id="hppscm_colorcode_i" >> aria-labelledby="hppscm_colorcode_c hppscm_colorcode_w" style="height: >> 74px;" size="7" attrName="hppscm_colorcode" defaultSelected="3" >> attrPriv="7" controlmode="normal" defaultvalue="3"><option >> title=""></option><option title="Blue" value="2">Blue</option><option >> title="Red" value="1">Red</option><option title="Green" >> value="3">Green</option><option title="Yellow" >> value="4">Yellow</option><option title="Amber" >> value="5">Amber</option><option title="White" >> value="6">White</option></select> >> >> Thanks, >> >> Aneel >> >> >> On Wed, Jan 15, 2014 at 7:21 AM, Kishor Kumar <[email protected]>wrote: >> >>> @Aneel, >>> can you post the innerhtml and outerhtml code and why specifically your >>> are =verifying "SELECTION" propertry, why cannot you verify value property >>> of the list >>> >>> >>> >>> >>> On Wed, Jan 15, 2014 at 12:18 AM, aneel pal <[email protected]> wrote: >>> >>>> Hi Kishore, >>>> >>>> Through you code i was able to select the item in WebList but selected >>>> option is not reflected in WebList >>>> >>>> I think my problem is not clear to everyone, so i am explaining it more >>>> clearly. >>>> >>>> Suppose we have WebList with all the Country name and if i selected >>>> "India" after expanding the WebList and then after collasping the Weblist >>>> "India" should display in Weblist as selected option. >>>> >>>> >>>> Thanks >>>> Aneel >>>> >>>> >>>> On Tue, Jan 14, 2014 at 9:15 PM, Kishor Kumar <[email protected]>wrote: >>>> >>>>> Hi Aneel, >>>>> the control (weblist is presented in WebTable), so find out the row >>>>> and column where the weblist exist in a table >>>>> then use child item () to get reference like below >>>>> >>>>> assume weblist exist in Row2 , column 3. then >>>>> >>>>> Set RefList=Br().p().Webtable().childItem(row,col,"WebList",0) >>>>> >>>>> RefList.select "#1" >>>>> >>>>> >>>>> >>>>> On Tue, Jan 14, 2014 at 9:03 PM, aneel pal <[email protected]>wrote: >>>>> >>>>>> >>>>>> >>>>>> Spy.png<https://docs.google.com/file/d/0Bzl7KjFnQcZNX2JmWDhScTVNNU0/edit?usp=drive_web> >>>>>> Hi Prakash, >>>>>> >>>>>> Items are not coming as "WebElement" , For reference I am attaching >>>>>> Screen Shot (Spy) , >>>>>> >>>>>> Please Suggest me any other way . >>>>>> >>>>>> Thanks And Regards >>>>>> Aneel >>>>>> >>>>>> >>>>>> On Sun, Jan 12, 2014 at 3:24 PM, Prakash Maurya < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> Hi Aneel, >>>>>>> >>>>>>> Try to spy the values displayed in the drop down list..like "Green", >>>>>>> "Blue", i guess they will be coming as 'WebElement' instead of WebList. >>>>>>> In >>>>>>> this case you have to add these objects/colors in your object repository >>>>>>> and then 1st click on web-list and than click on the color/WebElement >>>>>>> you >>>>>>> want to select. >>>>>>> >>>>>>> Thanks & Regards, >>>>>>> Prakash Maurya >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Saturday, 11 January 2014 18:16:16 UTC+5:30, Aneel wrote: >>>>>>>> >>>>>>>> Hi All Experts, >>>>>>>> >>>>>>>> >>>>>>>> I am facing one problem while working on web based MS CRM 2013 >>>>>>>> Application. >>>>>>>> >>>>>>>> I am able to select the option in weblist but after selection that >>>>>>>> option is not listed as selected option in weblist. >>>>>>>> Below code selects the option >>>>>>>> Browser("").Page("").Frame("").WebList("Lst_ColorCode").Select >>>>>>>> "Green" >>>>>>>> >>>>>>>> And after that it is not display as selected option in weblist. >>>>>>>> >>>>>>>> I tried with sendkey {ENTER} also but not getting any success >>>>>>>> >>>>>>>> I am using QTP 9.5 , refer the attached screen shot. >>>>>>>> >>>>>>>> Please help >>>>>>>> >>>>>>>> >>>>>>>> Thanks and Regards, >>>>>>>> Aneel >>>>>>>> >>>>>>> -- >>>>>>> -- >>>>>>> You received this message because you are subscribed to the Google >>>>>>> "QTP - HP Quick Test Professional - Automated Software Testing" >>>>>>> group. >>>>>>> To post to this group, send email to [email protected] >>>>>>> To unsubscribe from this group, send email to >>>>>>> [email protected] >>>>>>> For more options, visit this group at >>>>>>> http://groups.google.com/group/MercuryQTP?hl=en >>>>>>> >>>>>>> --- >>>>>>> You received this message because you are subscribed to the Google >>>>>>> Groups "QTP - HP Quick Test Professional - Automated Software Testing" >>>>>>> group. >>>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>>> send an email to [email protected]. >>>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>>> >>>>>> >>>>>> -- >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> "QTP - HP Quick Test Professional - Automated Software Testing" >>>>>> group. >>>>>> To post to this group, send email to [email protected] >>>>>> To unsubscribe from this group, send email to >>>>>> [email protected] >>>>>> For more options, visit this group at >>>>>> http://groups.google.com/group/MercuryQTP?hl=en >>>>>> >>>>>> --- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "QTP - HP Quick Test Professional - Automated Software Testing" >>>>>> group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to [email protected]. >>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>> >>>>> >>>>> -- >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> "QTP - HP Quick Test Professional - Automated Software Testing" >>>>> group. >>>>> To post to this group, send email to [email protected] >>>>> To unsubscribe from this group, send email to >>>>> [email protected] >>>>> For more options, visit this group at >>>>> http://groups.google.com/group/MercuryQTP?hl=en >>>>> >>>>> --- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "QTP - HP Quick Test Professional - Automated Software Testing" >>>>> group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>> >>>> >>>> -- >>>> -- >>>> You received this message because you are subscribed to the Google >>>> "QTP - HP Quick Test Professional - Automated Software Testing" >>>> group. >>>> To post to this group, send email to [email protected] >>>> To unsubscribe from this group, send email to >>>> [email protected] >>>> For more options, visit this group at >>>> http://groups.google.com/group/MercuryQTP?hl=en >>>> >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "QTP - HP Quick Test Professional - Automated Software Testing" >>>> group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>> >>> -- >>> -- >>> You received this message because you are subscribed to the Google >>> "QTP - HP Quick Test Professional - Automated Software Testing" >>> group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/MercuryQTP?hl=en >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "QTP - HP Quick Test Professional - Automated Software Testing" >>> group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> -- >> -- >> You received this message because you are subscribed to the Google >> "QTP - HP Quick Test Professional - Automated Software Testing" >> group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/MercuryQTP?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "QTP - HP Quick Test Professional - Automated Software Testing" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "QTP - HP Quick Test Professional - Automated Software Testing" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en --- You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
