Topic
8 replies Latest Post - ‏2013-09-10T08:19:26Z by Y5QY_gerben_delange
Rahul Singh
Rahul Singh
7 Posts
ACCEPTED ANSWER

Pinned topic Unable to click Dojo Mover option

‏2013-08-29T06:19:35Z |

Hi,

I am unable to click on the option which is displayed after the mouse over fuctionality is performed, Can any one please help me out

  • ChrisGF
    ChrisGF
    135 Posts
    ACCEPTED ANSWER

    Re: Unable to click Dojo Mover option

    ‏2013-08-29T10:42:44Z  in response to Rahul Singh

    Hi,

    what do you mean by 'clicking on the option' ?

    Does RFT recognise your object on the screen?

    Do you know where your object is on the screen?

     

    Maybe a screenshot and some more info would help...

    PS.:

    You can click on an exact point in the browser

    .click(atPoint(44,14));

    or maybe even

    nativeView().click(atPoint(182,38));

     

    • Rahul Singh
      Rahul Singh
      7 Posts
      ACCEPTED ANSWER

      Re: Unable to click Dojo Mover option

      ‏2013-08-31T07:36:47Z  in response to ChrisGF

      Hi Krisz,

       

      RFT recognize the mouse Over object but I am Unable to find the Properties of the option which is there in mouse over object  and unable to click on the option which is getting displayed

      And I cant use the code like click(atPoint(44,14)); as these co-ordinates can change when screen size changed

      My problem is as I move the mouse over an object it displays the option and option get disappear as mouse is moved so unable to find the properties of the option.

      With the help of "Inser Test Object" i have found the properties of the Object where option is hidden but with that help also I am unable to click on the option which is there in the Hover object.

       

      Please Have a Look on the attached file which I have attached which will give clear idea of the Object and there property.

       

      Attachments

      • ChrisGF
        ChrisGF
        135 Posts
        ACCEPTED ANSWER

        Re: Unable to click Dojo Mover option

        ‏2013-09-03T07:48:06Z  in response to Rahul Singh

        well, maybe you should make an "Insert Recording into Active Functional Test Script" (beside the recurd button) to the codepart where you need this property and create a Timedelayed Verification point on the mouse over object.

        • Rahul Singh
          Rahul Singh
          7 Posts
          ACCEPTED ANSWER

          Re: Unable to click Dojo Mover option

          ‏2013-09-09T06:26:31Z  in response to ChrisGF

          Hi Krisz,

           

          I Already did that and script which was recorded is "textNode_x().click(atPoint(69,6));"

          x()=object which has to be click

          Now in this case i don't want the co-ordinates. Is there any other option/Script/Code apart Co-ordinates???

          Updated on 2013-09-09T06:27:37Z at 2013-09-09T06:27:37Z by Rahul Singh
          • ChrisGF
            ChrisGF
            135 Posts
            ACCEPTED ANSWER

            Re: Unable to click Dojo Mover option

            ‏2013-09-09T11:21:23Z  in response to Rahul Singh

            I`m not sure but if you have some text on your object you can try:

            textNode_x().click(atText("TextonScreen"));

            or in case it pops up..

            textNode_x().click(atPath("TextonScreen"));

            or create a verification point and work with the visible contents

            (what you see on the screen) so you could somehow reach the object's visible content (if you know what you expect to be visible).I have no other ideas....

            Updated on 2013-09-09T11:22:14Z at 2013-09-09T11:22:14Z by ChrisGF
  • Y5QY_gerben_delange
    Y5QY_gerben_delange
    33 Posts
    ACCEPTED ANSWER

    Re: Unable to click Dojo Mover option

    ‏2013-09-09T19:08:31Z  in response to Rahul Singh

    Hi Rahul,

    I've looked at your .doc, and created an example script for you. Just create a new script in RFT (choose Java Scripting instead of Simplified scripting), and call it RahulProblem. Now delete all code in the new script and copy paste everything from the attachment.

    You will need to change some recognition properties, just read the comment lines in the attachment.

    Open the webpage containing the menu/link, and run the script.

     

    good luck,

    g

     

     

    Attachments

    • Rahul Singh
      Rahul Singh
      7 Posts
      ACCEPTED ANSWER

      Re: Unable to click Dojo Mover option

      ‏2013-09-10T05:12:36Z  in response to Y5QY_gerben_delange

      Hi Gerben,

      I was using Java scripting only, but ur code help me a lot, thx for ur help Gerben.

       

      Thx,

      Rahul

      • Y5QY_gerben_delange
        Y5QY_gerben_delange
        33 Posts
        ACCEPTED ANSWER

        Re: Unable to click Dojo Mover option

        ‏2013-09-10T08:19:26Z  in response to Rahul Singh

        Glad to help.

        Don't forget to unregister the dynamic test objects (e.g. unregisterAll());

        Also, if you want to be able to record a hover action:

        You can record a hover action by moving the mouse over an object and hitting the shift key.

        I don't use the record funtions at all, but just found this in de RFT API :)

         

        cheers,

         

        g