Hi,
I am new to Ranorex and I am having some difficulties in locating element on my desktop application.
At the initial level I am going good but when I need to interact with popup windows I am getting in to this problem.
While using the spy I can locate and highlight element but when I run the program it throws element not found exception.
Snapshot attached.
Thank you
Not able to find element in popup window
Not able to find element in popup window
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Not able to find element in popup window
Hi rv38,
Thank you for attaching a snapshot.
Unfortunately it is hard to analyze this issue without having detailed information about your Solution. But it sounds like a path issue.
May I ask you to provide your Solution or a sample which illustrates the issue?
This will help us to narrow down the problem.
PS: If you don't want to post your Solution here in this forum you can also send it to [email protected]
Thank you in advance.
Regards,
Markus (S)
Thank you for attaching a snapshot.
Unfortunately it is hard to analyze this issue without having detailed information about your Solution. But it sounds like a path issue.
May I ask you to provide your Solution or a sample which illustrates the issue?
This will help us to narrow down the problem.
PS: If you don't want to post your Solution here in this forum you can also send it to [email protected]
Thank you in advance.
Regards,
Markus (S)
Re: Not able to find element in popup window
Hi Markus,
Thank you for your replay.
Here is the code I am having issue with.
For I have use other method to do my job.
Commented code is not working for me.
Thank you for your replay.
Here is the code I am having issue with.
For I have use other method to do my job.
Commented code is not working for me.
Code: Select all
repo.FormAmicusMain.FormPeopleIndex.ToolBar.ButtonNew.Click(); // this one works
//repo.FormNewContact.ContainerPanelNewOrBasedOn.RadioButtonNew.Click();
Ranorex.RadioButton radioNew = repo.FormNewContact.ContainerPanelNewOrBasedOn.Self.FindSingle(".//radiobutton[@text='New']");
radioNew.Click();
//repo.FormNewContact.ContactName.FirstName.Click();
Ranorex.Text textFirst = repo.FormNewContact.ContactName.Self.FindSingle(".//element[@instance='5']/text");
textFirst.Click();
Keyboard.Press(vFirstName);
//repo.FormNewContact.ContactName.LastName.Click();
Ranorex.Text textLast = repo.FormNewContact.ContactName.Self.FindSingle(".//element[@instance='7']/text");
textLast.Click();
Keyboard.Press(vLastName);
repo.FormNewContact.ToolBar.ButtonNext.Click(); // this one works
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Not able to find element in popup window
Hi rv38,
Thank you for providing your code.
Unfortunately I would also need the Repository (.rxrep-file) in order to analyze the path of your items.
May I ask you to send your solution and a snapshot of your application to [email protected]?
Thank you in advance.
Regards,
Markus (S)
Thank you for providing your code.
Unfortunately I would also need the Repository (.rxrep-file) in order to analyze the path of your items.
May I ask you to send your solution and a snapshot of your application to [email protected]?
Thank you in advance.
Regards,
Markus (S)