Forum Discussion

lakshmi85's avatar
lakshmi85
New Contributor
2 years ago

Drag method is sucessfull but not abel tos ee any result

I am using Drag method to draw a line between two points.

Test completed script results shows its executed successfully ,but I am not able to see any line between point.

When I record the script and executes result is same.

 

tabControl.TabControl.zcanvas.GraphicalBlockControl.Drag(58, 53, 124, -33)

above line is not executing when I run the script. I want to draw line between the coordinates as shown in the attachment.

 

 

3 Replies

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Create a Keyword Test and record your actions, then convert the keyword test to script. You should then see the exact coordinates it has recorded.

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    The following code,

    function DrawLine()
    {
        // "https://www.autodraw.com/"
        var browser = Sys.Browser("chrome");
        var page = browser.Page("https://www.autodraw.com/");
        page.Panel("root").Panel("main_app_content").Panel("main_canvas_container").Canvas("main_canvas").Drag(407, 165, 1086, 425);
    }

    draws a line,

     

    In your example, are you able to see the mouse cursor move from one point to another?

    • lakshmi85's avatar
      lakshmi85
      New Contributor
      Hi rraghvani,

      In my case I am not able to see mouse cursor moving from one point to another point.