Forum Discussion

srikanth2801's avatar
srikanth2801
Contributor
14 years ago

how to click on a button


Hi

this is srikanth

i have a doubt.

i want to click on a button with text open or save.



iam using * in the place of text. it is not identifying the button as an object .



does any body give example to click that button using the regular expression with containing the text open or save



like open|save .

ex:-



objDialog.SwingObject("WindowsFileChooserUI$6", "*", -1).Click();



Thanks in advance.




4 Replies

  • In my case it is not accepting the * and it is waiting for the button object with * in it.



    i want it to be open or save what ever it is i want to click on the button.



    could you please help me out for this.



    Thanks in advance.



    Srikanth.
  • pjaju's avatar
    pjaju
    Occasional Contributor
    You can also use FindChild method to find the desired button.