How to click the button?
Posted: Wed Sep 09, 2009 5:59 pm
Hi,
I'm new to Ranorex and also to C# but I have experience with C, C++ and Java. But I'm not be able to solve my little problem.
All I want is to press the Refresh-Button in Firefox. That's all. Here is a picture from my Repository.
So, I tried this Code like in the User-Guide:
But I got the Error CS0120 "An object reference is required for the nonstatic field, method, or property 'member'". So I tried this:
Still the same Next try:
Still the same Can anyone help me?
Regards, Alex
I'm new to Ranorex and also to C# but I have experience with C, C++ and Java. But I'm not be able to solve my little problem.
All I want is to press the Refresh-Button in Firefox. That's all. Here is a picture from my Repository.
So, I tried this Code like in the User-Guide:
Code: Select all
NewRepository.Hartgeld.Buttons.NeuLaden.Click();
Code: Select all
Ranorex.Button button = NewRepository.Hartgeld.Buttons.NeuLaden;
button.Click();
Code: Select all
try
{
Program meins = new Program();
meins.start();
}
...
public void start()
{
Ranorex.Button button = NewRepository.Hartgeld.Buttons.NeuLaden;
button.Click();
}
Regards, Alex