Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

While running Test script the value of drop down is not getting selected

This is a discussion on While running Test script the value of drop down is not getting selected within the QTP forums, part of the Software Testing category; While recording I am able to select the value from the Drop Down menu, but while running the Test script the value is not getting selected and giving err of ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 06-22-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 192 Times in 154 Posts
Geek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura about
While running Test script the value of drop down is not getting selected

While recording I am able to select the value from the Drop Down menu, but while running the Test script the value is not getting selected and giving err of "Select" object.

Question asked by visitor darshana
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-09-2007
Contributing Member
 
Join Date: Feb 2006
Posts: 85
Thanks: 0
Thanked 3 Times in 3 Posts
kunals is on a distinguished road
Re: While running Test script the value of drop down is not getting selected

Well you rproblem is very unclear here but there may be few reasons for this one very common is the DropDown doesn't contain the value which it recorded.

So it will be good if you can give some more details and if possible screen shot of the error.

One quick solution is if it doesn't matter what you select from the Dropdown then you can specify the same by #3
where 3 is the number of the element in the array(remember array starts from 0).
hope this will help you,
let me know if you need any more help on this
Thanks,
Kunals.
Reply With Quote
  #3 (permalink)  
Old 07-11-2007
Contributing Member
 
Join Date: Feb 2006
Location: Beverly, Boston
Posts: 43
Thanks: 1
Thanked 1 Time in 1 Post
smartarun is on a distinguished road
Re: While running Test script the value of drop down is not getting selected

If you are retaining the ..<frame>.<object><br /> <br /> Like it records the webtable.event then it won't recognize.<br /> Instead if the dropdown_1.event, dropdown_1.value is passed it works.<br /> <br /> Try removing webtable script and execute with only dropdown_1 method.<br /> It will work. Try using passing the value like .set "1" ...etc where dropdown has 1 item init.<br /> <br /> This will work.<br /> <br /> Arun* </div> <!-- / message --> <div style="margin-top: 10px" align="right"> <!-- controls --> <a href="http://www.geekinterview.com/talk/newreply.php?do=newreply&p=14811" rel="nofollow"><img src="images/buttons/quote.gif" alt="Reply With Quote" border="0" /></a> <!-- / controls --> </div> <!-- message, attachments, sig --> </td> </tr> </table> <div id="post_thanks_box_14811"></div> <!-- post 14811 popup menu --> <!-- / post 14811 popup menu --> </div> </div> </div> </div> <!-- / close content container --> <!-- / post #14811 --><div id="lastpost"></div></div> <!-- start content table --> <!-- open content container --> <div align="center"> <div class="page" style="width:920pxpx; text-align:left"> <div style="padding:0px 25px 0px 25px" align="left"> <!-- / start content table --> <!-- controls below postbits --> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:-3px"> <tr valign="top"> <td class="smallfont"><a href="http://www.geekinterview.com/talk/newreply.php?do=newreply&noquote=1&p=14811" rel="nofollow"><img src="images/buttons/reply.gif" alt="Reply" border="0" /></a></td> </tr> </table> <!-- / controls below postbits --> <!-- navbar mini: inline --> <br /> <table class="tborder" align="center" border="0" cellpadding="6" cellspacing="1" width="100%"> <tbody><tr> <td class="alt1"> <!-- breadcrumb --> <table cellpadding="6" cellspacing="0" border="0" width="100%"> <tr> <td> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr valign="bottom"> <td> </td> <td width="100%"><span class="navbar"><a href="http://www.geekinterview.com/talk/" accesskey="1">Geeks Talk</a></span> <span class="navbar">> <a href="http://www.geekinterview.com/talk/software-testing/">Software Testing</a></span> <span class="navbar">> <a href="http://www.geekinterview.com/talk/qtp/">QTP</a></span> </td> </tr> </table> </td> </tr> </table> <!-- / breadcrumb --> </td> </tr></tbody> </table> <!-- / navbar mini: inline --> <!-- next / previous links --> <br /> <div class="smallfont" align="center"> <strong>«</strong> <a href="http://www.geekinterview.com/talk/4867-qtp-question.html" >QTP question?</a> | <a href="http://www.geekinterview.com/talk/5252-default-add-ins-supported-qtp-9-a.html" >Default add-ins supported by the QTP 9.2</a> <strong>»</strong> </div> <!-- / next / previous links --> <!-- controls for non-popup browsers --> <table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px"> <tr> <td class="thead" colspan="2">Thread Tools<a name="goto_threadtools"></a></td> </tr> <tr valign="top"> <td class="alt1" colspan="2"> <!-- thread tools --> <div class="smallfont"> <div><img class="inlineimg" src="images/buttons/printer.gif" alt="Show Printable Version" vspace="1" /> <a href="http://www.geekinterview.com/talk/4753-while-running-test-script-value-drop-print.html" rel="nofollow">Show Printable Version</a></div> <div><img class="inlineimg" src="images/buttons/sendtofriend.gif" alt="Email this Page" vspace="1" /> <a href="http://www.geekinterview.com/talk/sendmessage.php?do=sendtofriend&t=4753" rel="nofollow">Email this Page</a></div> </div> <!-- / thread tools --> </td> </tr> <tr> <td class="thead" colspan="2">Display Modes<a name="goto_displaymodes"></a></td> </tr> <tr valign="top"> <td class="alt2" colspan="2"> <!-- thread display modes --> <div class="smallfont"> <div><img class="inlineimg" src="images/buttons/mode_linear.gif" alt="Linear Mode" vspace="1" /> <strong>Linear Mode</strong></div> <div><img class="inlineimg" src="images/buttons/mode_hybrid.gif" alt="Hybrid Mode" vspace="1" /> <a rel="nofollow" href="http://www.geekinterview.com/talk/4753-while-running-test-script-value-drop.html?mode=hybrid">Switch to Hybrid Mode</a></div> <div><img class="inlineimg" src="images/buttons/mode_threaded.gif" alt="Threaded Mode" vspace="1" /> <a rel="nofollow" href="http://www.geekinterview.com/talk/4753-while-running-test-script-value-drop.html?mode=threaded#post13755">Switch to Threaded Mode</a></div> </div> <!-- / thread display modes --> </td> </tr> </table> <br /> <!-- / controls for non-popup browsers --> <!-- forum rules and admin links --> <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center"> <tr valign="bottom"> <td width="100%" valign="top"> <table class="tborder" cellpadding="6" cellspacing="0" border="0" width="210"> <thead> <tr> <td class="thead"> <a style="float:right" href="#top" onclick="return toggle_collapse('forumrules')"><img id="collapseimg_forumrules" src="images/buttons/collapse_thead.gif" alt="" border="0" /></a> Posting Rules </td> </tr> </thead> <tbody id="collapseobj_forumrules" style=""> <tr> <td class="alt1" nowrap="nowrap"><div class="smallfont"> <div>You <strong>may not</strong> post new threads</div> <div>You <strong>may not</strong> post replies</div> <div>You <strong>may not</strong> post attachments</div> <div>You <strong>may not</strong> edit your posts</div> <hr /> <div><a rel="nofollow" href="http://www.geekinterview.com/talk/misc.php?do=bbcode" target="_blank">BB code</a> is <strong>On</strong></div> <div><a rel="nofollow" href="http://www.geekinterview.com/talk/misc.php?do=showsmilies" target="_blank">Smilies</a> are <strong>On</strong></div> <div><a rel="nofollow" href="http://www.geekinterview.com/talk/misc.php?do=bbcode#imgcode" target="_blank">[IMG]</a> code is <strong>On</strong></div> <div>HTML code is <strong>On</strong></div><div><a rel="nofollow" href="http://www.geekinterview.com/talk/misc.php?do=linkbacks#trackbacks" target="_blank">Trackbacks</a> are <strong>On</strong></div> <div><a rel="nofollow" href="http://www.geekinterview.com/talk/misc.php?do=linkbacks#pingbacks" target="_blank">Pingbacks</a> are <strong>On</strong></div> <div><a rel="nofollow" href="http://www.geekinterview.com/talk/misc.php?do=linkbacks#refbacks" target="_blank">Refbacks</a> are <strong>Off</strong></div> <hr /> <div><a rel="nofollow" href="http://www.geekinterview.com/talk/misc.php?do=showrules" target="_blank">Forum Rules</a></div> </div></td> </tr> </tbody> </table> </td> <td class="smallfont" align="right"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td> </td> </tr> </table> </td> </tr> </table> <!-- /forum rules and admin links --> <br /> <table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center"> <thead> <tr> <td class="tcat" width="100%" colspan="5"><h4><h4> <a style="float:right" href="#top" onclick="return toggle_collapse('similarthreads')"><img id="collapseimg_similarthreads" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a> Similar Threads<a name="similarthreads"></a> </h4></h4></td> </tr> </thead> <tbody id="collapseobj_similarthreads" style=""> <tr class="thead" align="center"> <td class="thead" width="40%">Thread</td> <td class="thead" width="15%" nowrap="nowrap">Thread Starter</td> <td class="thead" width="20%">Forum</td> <td class="thead" width="5%">Replies</td> <td class="thead" width="20%">Last Post</td> </tr> <tr> <td class="alt1" align="left"> <span class="smallfont"> <a href="http://www.geekinterview.com/talk/4004-running-test-test-director-test-lab.html" title="I have successfully integrated TD with QTPro, and now i am able to execute / Run my QTPro Tests throgh TD Test Lab, Now the problem is this that I...">Running Test in Test Director Test Lab without QTP</a></span> </td> <td class="alt2" nowrap="nowrap"><span class="smallfont">Geek_Guest</span></td> <td class="alt1" nowrap="nowrap"><span class="smallfont">QTP</span></td> <td class="alt2" align="center"><span class="smallfont">2</span></td> <td class="alt1" align="right"><span class="smallfont">12-24-2007 <span class="time">01:57 AM</span></span></td> </tr> <tr> <td class="alt1" align="left"> <span class="smallfont"> <a href="http://www.geekinterview.com/talk/4717-how-do-i-make-new-requirement.html" title="The question is in relation to Test Director 9.0. In my office Test Director 9.0 has currently installed which is an evaluation copy and not the...">How do I make a new requirement, test plan, test script, defect in test director 9.0</a></span> </td> <td class="alt2" nowrap="nowrap"><span class="smallfont">Geek_Guest</span></td> <td class="alt1" nowrap="nowrap"><span class="smallfont">Test Director</span></td> <td class="alt2" align="center"><span class="smallfont">0</span></td> <td class="alt1" align="right"><span class="smallfont">06-20-2007 <span class="time">10:50 PM</span></span></td> </tr> <tr> <td class="alt1" align="left"> <span class="smallfont"> <a href="http://www.geekinterview.com/talk/3098-change-properties-action-after-running-qtp.html" title="How to change the properties of an action after running of QTP script ,by using scripting? if any one knows scripting for this, pls let me know. ...">Change properties of an action after running QTP script</a></span> </td> <td class="alt2" nowrap="nowrap"><span class="smallfont">babulu</span></td> <td class="alt1" nowrap="nowrap"><span class="smallfont">QTP</span></td> <td class="alt2" align="center"><span class="smallfont">3</span></td> <td class="alt1" align="right"><span class="smallfont">04-19-2007 <span class="time">12:32 PM</span></span></td> </tr> <tr> <td class="alt1" align="left"> <span class="smallfont"> <a href="http://www.geekinterview.com/talk/3502-script-not-running-properly-getting-window.html" title="Question asked by visitor Reddy Hi I did recording calculator or any othe site & i am playing the script back but no script is running proprly ...">Script is not running properly getting Window was not found error</a></span> </td> <td class="alt2" nowrap="nowrap"><span class="smallfont">Geek_Guest</span></td> <td class="alt1" nowrap="nowrap"><span class="smallfont">SilkTest</span></td> <td class="alt2" align="center"><span class="smallfont">1</span></td> <td class="alt1" align="right"><span class="smallfont">04-18-2007 <span class="time">08:16 AM</span></span></td> </tr> <tr> <td class="alt1" align="left"> <span class="smallfont"> <a href="http://www.geekinterview.com/talk/1925-running-scripts-from-test-director.html" title="How to run scripts from a Test Director / Quality Center and view and verify the results and interpret the results NOTE :">Running scripts from Test Director</a></span> </td> <td class="alt2" nowrap="nowrap"><span class="smallfont">JobHelper</span></td> <td class="alt1" nowrap="nowrap"><span class="smallfont">Test Director</span></td> <td class="alt2" align="center"><span class="smallfont">1</span></td> <td class="alt1" align="right"><span class="smallfont">01-24-2007 <span class="time">06:20 AM</span></span></td> </tr> </tbody> </table> <br /> <div align="center"> <!-- Start of Infolink ADs --> <script type="text/javascript"> var infolink_pid = 28546; var infolink_wsid = 1; </script> <script type="text/javascript" src="http://resources.infolinks.com/js/infolinks_main.js"></script> <!-- End of Infolink ADs --> <div align="center"><script type="text/javascript"> <!-- microsoft_adunitid="2235"; microsoft_adunit_width="728"; microsoft_adunit_height="90"; microsoft_adunit_legacy="false";//--> </script> <script type="text/javascript" src="http://adsyndication.msn.com/delivery/getads.js" ></script></div> <!-- Start Quantcast tag --> <script type="text/javascript" src="http://edge.quantserve.com/quant.js"></script> <script type="text/javascript">_qacct="p-aeeYx09OaN2Jo";quantserve();</script> <noscript> <a rel="nofollow" href="http://www.quantcast.com/p-aeeYx09OaN2Jo" target="_blank"> <img src="http://pixel.quantserve.com/pixel/p-aeeYx09OaN2Jo.gif" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/></a> </noscript> <!-- End Quantcast tag --> </div> <br /> <div class="smallfont" align="center">All times are GMT -4. The time now is <span class="time">07:01 AM</span>.</div> <br /> </div> </div> </div> <!-- / close content container --> <!-- /content area table --> </div> <!-- /bullseye background --> <form action="http://www.geekinterview.com/talk/" method="get" style="clear:left"> <table id="vbseo_bottom_menu" cellpadding="6" cellspacing="0" border="0" width="920px" class="page" align="center"> <tr> <td class="tfoot" align="right" width="100%"> <div class="smallfont"> <strong> <a href="http://www.geekinterview.com/talk/sendmessage.php" rel="nofollow" accesskey="9">Contact Us</a> - <a href="http://www.geekinterview.com">Geeks Discussions</a> - <a href="sitemap/">Archive</a> - <a href="http://www.geekinterview.com/privacy.html">Privacy Statement</a> - <a href="#top" onclick="self.scrollTo(0, 0); return false;">Top</a> </strong> </div> </td> </tr> </table> <br /> <div align="center"> <div class="smallfont" align="center"> <!-- Do not remove this copyright notice --> Powered by vBulletin® Version 3.8.4<br />Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. <br />Content Relevant URLs by <a rel="nofollow" href="http://www.crawlability.com/vbseo/">vBSEO</a> 3.3.1 <!-- Do not remove this copyright notice --> </div> <div class="smallfont" align="center"> <!-- Do not remove cronimage or your scheduled tasks will cease to function --> <!-- Do not remove cronimage or your scheduled tasks will cease to function --> Copyright © 2009 GeekInterview.com. All Rights Reserved </div> </div> </form> <script type="text/javascript"> <!-- // Main vBulletin Javascript Initialization vBulletin_init(); //--> </script> <!-- temp --> <div style="display:none"> <!-- thread rate --> <!-- / thread rate --> </div> <div class="vbmenu_popup" id="linkbacktools_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">LinkBack<a name="goto_linkback"></a></td> </tr> <tr> <td class="vbmenu_option"><img class="inlineimg" src="images/vbseo/linkback_url.gif" alt="LinkBack URL" /> <a href="http://www.geekinterview.com/talk/" onclick="prompt('Use the following URL when referencing this thread from another forum or blog.','');return false;">LinkBack URL</a></td> </tr> <tr> <td class="vbmenu_option"><img class="inlineimg" src="images/vbseo/linkback_about.gif" alt="About LinkBacks" /> <a rel="nofollow" href="http://www.geekinterview.com/talk/misc.php?do=linkbacks">About LinkBacks</a></td> </tr> <tr> <td class="thead">Bookmark & Share</td> </tr> <tr><td class="vbmenu_option"><img class="inlineimg" src="images/vbseo/digg.gif" alt="Digg this Thread!" /> <a rel="nofollow" href="http://digg.com/submit?phase=2&url=http%3A%2F%2Fwww.geekinterview.com%2Ftalk%2F4753-while-running-test-script-value-drop.html&title=While+running+Test+script+the+value+of+drop+down+is+not+getting+selected" target="_blank">Digg this Thread!</a><a name="vbseodm_0"></a></td></tr><tr><td class="vbmenu_option"><img class="inlineimg" src="images/vbseo/delicious.gif" alt="Add Thread to del.icio.us" /> <a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.geekinterview.com%2Ftalk%2F4753-while-running-test-script-value-drop.html&title=While+running+Test+script+the+value+of+drop+down+is+not+getting+selected" target="_blank">Add Thread to del.icio.us</a><a name="vbseodm_1"></a></td></tr><tr><td class="vbmenu_option"><img class="inlineimg" src="images/vbseo/technorati.gif" alt="Bookmark in Technorati" /> <a rel="nofollow" href="http://technorati.com/faves/?add=http%3A%2F%2Fwww.geekinterview.com%2Ftalk%2F4753-while-running-test-script-value-drop.html" target="_blank">Bookmark in Technorati</a><a name="vbseodm_2"></a></td></tr><tr><td class="vbmenu_option"><img class="inlineimg" src="images/vbseo/furl.gif" alt="Furl this Thread!" /> <a rel="nofollow" href="http://www.furl.net/storeIt.jsp?u=http%3A%2F%2Fwww.geekinterview.com%2Ftalk%2F4753-while-running-test-script-value-drop.html&t=While+running+Test+script+the+value+of+drop+down+is+not+getting+selected" target="_blank">Furl this Thread!</a><a name="vbseodm_3"></a></td></tr> </table> </div> <script type="text/javascript"> window.orig_onload = window.onload; window.onload = function() { var cpost=document.location.hash;if(cpost){ if(cobj = fetch_object(cpost.substring(1,cpost.length)))cobj.scrollIntoView(true);else {cpostno = cpost.substring(5,cpost.length);if(parseInt(cpostno)>0 && (cpost.substring(1,5)=='post')){location.replace('http://www.geekinterview.com/talk/showthread.php?p='+cpostno);};} } if(typeof window.orig_onload == "function") window.orig_onload(); } </script> </body> </html>