Hi Amit, Thanks for the below code. this is working fine in my case also
Regards, rajkumar On Jul 19, 11:50 am, Amit Pandey <[email protected]> wrote: > Find below the code for right clicking th=e javatree nodes > > Browser("Cramer6: deuser @ Cramer62").Page("Cramer6: deuser @ > Cramer62").Frame("ResourceBrowser").JavaApplet("ScriptableResourceBrowserApple").JavaApplet("ResourceBrowserApplet").JavaTree("BrowserTreePane$BrowserTree").Select > "#0;#0" > Wait 5 > set selectionPath = Browser("Cramer6: deuser @ Cramer62").Page("Cramer6: > deuser @ > Cramer62").Frame("ResourceBrowser").JavaApplet("ScriptableResourceBrowserApple").JavaApplet("ResourceBrowserApplet").JavaTree("BrowserTreePane$BrowserTree").Object.getSelectionPath() > set rect = Browser("Cramer6: deuser @ Cramer62").Page("Cramer6: deuser @ > Cramer62").Frame("ResourceBrowser").JavaApplet("ScriptableResourceBrowserApple").JavaApplet("ResourceBrowserApplet").JavaTree("BrowserTreePane$BrowserTree").Object.getPathBounds(selectionPath) > x = rect.x > y = rect.y > Browser("Cramer6: deuser @ Cramer62").Page("Cramer6: deuser @ > Cramer62").Frame("ResourceBrowser").JavaApplet("ScriptableResourceBrowserApple").JavaApplet("ResourceBrowserApplet").JavaTree("BrowserTreePane$BrowserTree").Click > CStr(x), CStr(y),"RIGHT" > > On Fri, Jul 15, 2011 at 1:39 AM, bhavin v patel <[email protected]> wrote: > > > > > You need to invoke some runtime object methods. > > > I dont know which one in particular but if u spy on that object and > > look for runtime methods you will find one.. > > > Thanks, > > Bhavin > > > On Jul 14, 3:16 am, rajkumar Thouta <[email protected]> wrote: > > > Hi All, > > > > when i am recording for the java tree i am finding the below code > > > > JavaWindow("cSONTest1-1002 - CM > > > Editor").JavaTree("AutoScrollJTree").Click 169,1814,"RIGHT" > > > JavaWindow("cSONTest1-1002 - CM Editor").JavaMenu("Assign > > > Template...").Select > > > > when i am executing the code again it is not able to click right side > > > and able to open window > > > > i would like to what is method for right clicking the window and > > > selecting the specific value. > > > > please find the attached for the same > > > > Regards, > > > rajkumar > > > -- > > You received this message because you are subscribed to the Google > > "QTP - HP Quick Test Professional - Automated Software Testing" > > group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > >http://groups.google.com/group/MercuryQTP?hl=en- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
