I want to know how to execute the descriptive programming in
qtp for the webedit object which does not contain attached
text property. but i have checked it with name and html id
property. Even though it is not executing. it is giving
error in object's physical description.
Answers were Sorted based on User's Feedback
Answer / denis parker
Set oDesc = Description.Create()
oDesc("micclass").Value = "WebEdit"
oDesc("name").Value = "YYY"
oDesc("html id").Value = "14A"
'Retrieve all WebEdit objects in this page
Set EditCollection = Browser("B").Page("B").ChildObjects(oDesc)
NumberOfEdits = EditCollection.Count
'Search for a specific WebEdit object and set its value
For i = 0 To NumberOfEdits - 1
EditCollection(i).Set "AAAA"
Next
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rkreddy
Set desc=description.Create
desc("mic class").value="webedit"
browser("name:=book store").page("title:=book
store").webedit(desc).Set"india"
try it....
Is This Answer Correct ? | 0 Yes | 1 No |
Hi, I got some difficulties in automating a web check box in a peoplesoft application. Let me explain the scenario, When clicked on a look up button in the application, it navigates to a new page with check boxes and respective options. Below is the source code for one check box and its option. <input type='checkbox' name='H1AU_BUNDLE_WRK_H1AU_SELECT_CH$2' id='H1AU_BUNDLE_WRK_H1AU_SELECT_CH$2' tabindex='34' value="Y" onclick="this.form.H1AU_BUNDLE_WRK_H1AU_SELECT_CH$chk$2.valu e=(this.checked?'Y':'N');submitAction_win0 (this.form,this.name);" /> </td> <td align='left' class='PSLEVEL1GRIDODDROW' > <span class='PSEDITBOX_DISPONLY' >$29 - $29 Cap with FREE Mobile</span> I want to parametrize using "$29 - $29 Cap with FREE Mobile". I am not aware of how to parametrize this. Currently I am parametrizing with 'H1AU_BUNDLE_WRK_H1AU_SELECT_CH$2' Can any one please help me out with this??/
i have written some lines of code today..tommorow some lines of code deleted in middle of that code..how to handle this type of script
In where you are keeping or maintaining shared object repository (file)in your appliction?
how to test background color and dynamic images during runtime
hi guys, could you please prepare script for given format ? 1,1,2,3,5,8,13,21,...etc use vbscript for this...?
Please explain the role of Regular expression in QTP
3. How to handle the exceptions using recovery secnario manager in Qtp?
Did you face the problem, changing the properties of an object in Run Time?
Write the Test Cases for ATM(Any Time Money)
What are the technologies supported by qtp?
How to create runtime property for an object?
How to modify the text checkpoint?