In one of the popup window, 1.I have recorded two edit fields by selecting them from a drop down box and after I have selected the options, 'INSERT' field need to appear. But when I am running those steps the option that I have selected is not shown up but the default options are shown up and 'INSERT' button too does not shown up. How to make sure that the selected fields are displayed along with the 'INSERT' link.When I am recording it is recorded as:Browser().Page().WebTable().WebElement(Option name that I have selected).click2. How to differentiate between two or three links with same name, like "DELETE", when the TYPE is None and not Index. When I am putting it in a loop, only one link gets deleted which is associated to one row. For other rows the 'Object not found' message is displayed

Questions by Sujatha Kandikonda

Showing Answers 1 - 2 of 2 Answers

msusmitha

  • Feb 7th, 2007
 

hi thi is susmithado u know the use of pop up windows.it is used for overcoming the problematic situation in ur eg u r nt getting the insert buttons enabled properity. for that u have to check the enable properity first by using the standard check point and then if u want to click on that button u specify the object state, in that u have to write a function call which is having the state of that bject. do thatautomatically u will get the solution.for second one u r using the links which is having the same name. while running u r getting that first row passes after that your test fails that means in the first row u deleted the link how it can belinked with net one because it is having the same name.i think u understoodmadhav_sus@yahoo.co.in

  Was this answer useful?  Yes

Bhamini

  • Feb 10th, 2007
 

Hi,i am not able to understand the question correctly. but if i get it right, then you want to use the same object name, but itrs property's value change depending upon your previous selections.such as if you select option 1, then link1 is displayed,.

if option 2 is selected then link is 2. but instead of recording 2 objects (different links) you want to use one object.what you can do is, use the method SetTOProperty(). this method will set the test object's property value at runtime.what you can do is

If "you have selected option 1" Then
Browser("abc").Page ("abc").Link("abc").SetTOProperty "value", "link1"
Else
Browser("abc").Page ("abc").Link("abc").SetTOProperty "value", "link2"
End If

I have used value as an example. you have to specify the appropriate property and the second parameter is the name.

this should help.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.