![]() |
Not able to set value from a drop-down box - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Not able to set value from a drop-down box (/Thread-Not-able-to-set-value-from-a-drop-down-box) |
Not able to set value from a drop-down box - EldonKing - 02-10-2011 resubmitted as seperate thread: ![]() Code: ' Error received .... The "ctl00$ctl13$UserControlHost1$ctl00$txtSubject" WebEdit object was not found in the Object Repository. Check the Object Repository to confirm that the object exists or to find the correct name for the object. Line (4): Code: "Browser("Browser").Page("Home - Initiative Tracking_2").WebEdit("ctl00$ctl13$UserControlHost1$ctl00$txtSubject").Set "Test Tracking System"". Tip: If the objects in your application have changed, the Maintenance Run Mode can help you identify and update your steps and/or the objects in your repository. This code was created in the Maintenance Run. ![]() RE: Not able to set value from a drop-down box - Ankur - 02-10-2011 This is an issue of dynamic object properties. First check which properties are dynamic and then either make those as regex or pass object properties at run time. RE: Not able to set value from a drop-down box - EldonKing - 02-11-2011 ![]() I have created an Object repository for each screen, I just use recording mode to go throught the test manually, but when I run the automated script, it does not work. I have manage some minor success by rearanging the data entries to complete the form by rows rather than columns. But when I click Creat at the bottom of the screen rather than staying in the same browser windo it opens another Window, and My system gives me access denied but recognizes who I am. Why is it opening is a seperate window, when I recorded the process it did not do that? RE: Not able to set value from a drop-down box - Ankur - 02-18-2011 (02-11-2011, 07:15 PM)EldonKing Wrote: Lets say you record upon an object and one of the properties value gets recorded as "xyz" in Obj Rep. Now whenever you run upon that object you see that object property keeps on changing. (can be checked using spy) Such properties are known as dynamic properties and should be handled using regex OR by passing properties at run time OR may be by removing them altogether from the object repository - as per the need of test. I guess, it would take us a lot of post exchanges before we can tell you the specific code for your case. I would suggest taking help/training in your organization for quicker response. |