Results 1 to 5 of 5
  1. #1

    Ambiguous Recognition

    I am trying to specify a WebElement based on the text property of a specific cell in a WebTable in order to convert that cell into a WebElement. However, I'm getting an error saying that there are multiple objects with the exact same description on the page. Is there any way to tell QuickTest to just "Pick One"?

    I've tried specifying multiple extra properties, but QT seems convinced that there are two objects.

  2. #2
    Senior Member
    Join Date
    Oct 2001
    Cambridge, MA, USA

    Re: Ambiguous Recognition

    If you are using DP, specify an "index" attribute in the description. WebElement("text:=foo", "index:=0") will get the first item that matches that text.

  3. #3

    Re: Ambiguous Recognition

    I just tried that, and it's not working either.

  4. #4
    Join Date
    Sep 2001
    Doncaster, UK

    Re: Ambiguous Recognition

    You might want to try adding the HTML tag:

    WebElement("innerText:=foo","index:=0","html tag:=SPAN")

    Mark Smith.

  5. #5

    Re: Ambiguous Recognition

    Already tried it:

    Browser("HICO").Page("HICO - CPSProjectInformation").WebTable("LineNo").WebElem ent ("innertext := "&BeforeUpdateAttempt, "html tag := NOBR", "Class Name := WebElement", "visible := True", "index := 0").Click



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 05:42 PM.

Copyright BetaSoft Inc.