Results 1 to 7 of 7
  1. #1

    Descriptive programming

    I am unable to simulate the below steps using descriptive programming. User is able to see a list of WebElements(eg:100) on a IE Popup. When user performs a mouse rollover on these WebElements the cursor turns to a hand and user is able to perform a click on these objects. What I am trying to do here is to perform a random click on one of the available WebElements.Should I use the Runtime object properties for these webelements ? If so how should I proceed ? Any help is appreciated ! Thanks !
    Attached Files Attached Files

  2. #2

    Re: Descriptive programming

    After moving mouse on the element it's able to click is this the conition?
    If so then use "onmouseover".

    What error u r getting?
    Explain more.


  3. #3

    Re: Descriptive programming

    I am getting a general run error. It is neither able to perform a mouseonover nor click. (Also have attached the example source code )Thanks !
    Attached Files Attached Files

  4. #4

    Re: Descriptive programming

    Try this

    Browser().Page().WebElement("text:=Test").object.o nmouseover
    Browser().Page().WebElement("text:=Test").object.c lick

  5. #5

    Re: Descriptive programming

    Hi I tried what was suggested, does not work. Also tried
    Browser().Page().WebElement("text:=Test").object.F ireEvent(onmouseover)
    Browser().Page().WebElement("text:=Test").object.c lick


  6. #6

    Re: Descriptive programming

    Set the Tools->Event recognization settings to High and then try recording the scripts

  7. #7

    Re: Descriptive programming

    Solution :
    Changed Class Name property to micclass like below (based on Mercury personnel's suggestion)

    If (Browser("name:=Country").Page("title:=Country").E xist(1))Then

    Set pMyDesc = Description.Create()
    pMyDesc("micclass").Value = "WebElement"
    pMyDesc("html tag").Value = "A"
    Set pWE =Browser("name:=Country").Page ("title:=Country").ChildObjects(pMyDesc)
    msgbox pNoOfChildObjs
    pCounter = ((pNoOfChildObjs*Rnd)+1)
    End If

    Thanks !



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:35 PM.

Copyright BetaSoft Inc.