Search found 34 matches
- Wed May 14, 2014 11:11 am
- Forum: Object Identification and Technologies
- Topic: Help selecting xpath that contains elements
- Replies: 13
- Views: 4846
Re: Help selecting xpath that contains elements
I just copied what you gave me above for CCCC and DDDD (admin and non admin) Admin : link[@automationid='HpButton']/text[@name='Admin']/following-sibling::text[@name='CCCC'] link[@automationid='HpButton']/text[@name='Admin']/following-sibling::text[@name='DDDD'] Non Admin link[@automationid='HpButto...
- Tue May 13, 2014 12:43 pm
- Forum: Object Identification and Technologies
- Topic: Help selecting xpath that contains elements
- Replies: 13
- Views: 4846
Re: Help selecting xpath that contains elements
Well, i'm still having a problem with this one, the link finally has more than one : Link 'HpButton' - Text 'ADMIN' - Text 'BBBB' Link 'HpButton' - Text 'ADMIN' - Text 'CCCC' Link 'HpButton' - Text 'ADMIN' - Text 'DDDD' Link 'HpButton' - Text 'BBBB' Link 'HpButton' - Text 'CCCC' Link 'HpButton' - Te...
- Wed May 07, 2014 3:35 pm
- Forum: Automation API
- Topic: Help on how to reuse code for a button clik
- Replies: 3
- Views: 2384
Re: Help on how to reuse code for a button clik
Hi, When you want to use the method of the UserCodeModule in the Recording's action table you just need to follow the steps below: Open the Recording.UserCode.cs file and add ... partial class Recording1 : UserCodeModule1 to inherit from your UserCodeModule Open your Recording's action table again ...
- Wed May 07, 2014 3:15 pm
- Forum: Automation Tools
- Topic: Anyway doing interceptor pattern in Ranorex
- Replies: 1
- Views: 1650
Anyway doing interceptor pattern in Ranorex
Hi, Let me explain what i want to do, basically i have lots of User Code in my recordings. And in each usercode i would like to execute a custom logging (read custom attributes on the method, and execute some code to database, etc...). The logging will be done before and after execution of the user ...
- Thu Apr 24, 2014 11:07 am
- Forum: Automation API
- Topic: Help on how to reuse code for a button clik
- Replies: 3
- Views: 2384
Help on how to reuse code for a button clik
Hi, In my Repository, i have a button with a variable "actionName", that will be called with Add,Save, Cancel, Edit,Delete, etc ... .//button/text[@Name=$btnactioname] What i want to do is on my recording, i can create a ClickButton that will just click the button above. What i did so far, i created...
- Thu Apr 24, 2014 10:10 am
- Forum: Object Identification and Technologies
- Topic: Help selecting xpath that contains elements
- Replies: 13
- Views: 4846
Re: Help selecting xpath that contains elements
puntapret, there is no way to do it the way your application is structured, from what I can see. If I were in your position, I would ask the developers to add a unique way to identify the elements that wouldn't change if the dom structure changes. For instance, add unique ids or class attributes to...
- Wed Apr 23, 2014 8:31 am
- Forum: Object Identification and Technologies
- Topic: Help selecting xpath that contains elements
- Replies: 13
- Views: 4846
Re: Help selecting xpath that contains elements
Is there any elegant way to avoid dom changes breaking paths ?krstcs wrote:OH, one warning: The following/preceding-sibling elements are dependent on the structure of the dom. If the dom changes, the paths may not work.
- Tue Apr 22, 2014 3:16 pm
- Forum: Object Identification and Technologies
- Topic: Help selecting xpath that contains elements
- Replies: 13
- Views: 4846
Re: Help selecting xpath that contains elements
Thank you krstcs. It's exactly what i want.
I didn't post the snapshot, because i thinks it's just a lack of my XPath skills
I didn't post the snapshot, because i thinks it's just a lack of my XPath skills
- Tue Apr 22, 2014 2:50 pm
- Forum: Object Identification and Technologies
- Topic: Help selecting xpath that contains elements
- Replies: 13
- Views: 4846
Help selecting xpath that contains elements
Hello, I'm having trouble on how to do identifying an xpath element, maybe someone with strong xpath experience can help me out. I'm using Silverlight and Ranorex 4.1.6. Basically in my silverlight application I have 2 links all with the same AutomationId, and inside i have either two texts or one t...
- Wed Jan 15, 2014 11:02 am
- Forum: General Questions
- Topic: Using Ranorex with FluentAssertions
- Replies: 1
- Views: 1816
Using Ranorex with FluentAssertions
Hi,
I liked the way FluentAssertions doing an assertion, and i know that Ranorex provide the Validate.
Is there a way to use FluentAssertions with Ranorex without using try catch like this :
Thanks
I liked the way FluentAssertions doing an assertion, and i know that Ranorex provide the Validate.
Is there a way to use FluentAssertions with Ranorex without using try catch like this :
Code: Select all
try {
myList.Should().BeEmpty(); }
catch ( Exception ex )
{
// Report error
}
- Wed Jan 15, 2014 10:23 am
- Forum: Automation API
- Topic: Best way to search by text in a gridview
- Replies: 18
- Views: 9117
Re: Best way to search by text in a gridview
I can assure you that the database works correctly and it returns 250 lines to the silverlight application. But hélas using ranorex spy on the currently visible gridview, i can only view 19 lines, and i have to scroll down using scroll bar to see the rest of the lines. So, at this time, i still can ...
- Fri Jan 10, 2014 5:49 pm
- Forum: Automation API
- Topic: Best way to search by text in a gridview
- Replies: 18
- Views: 9117
Re: Best way to search by text in a gridview
The table/gridview in Silverlight has 250 lines, it's just that using Ranorex Spy or Snapshot, i can only see 19, if i scroll the grid, it will show the next lines, so i think there are no problem with the database. That's why i can't seem finding a way to get a count of the total. WebElement in sil...
- Fri Jan 10, 2014 10:51 am
- Forum: Automation API
- Topic: Best way to search by text in a gridview
- Replies: 18
- Views: 9117
Re: Best way to search by text in a gridview
Thanks for the code. The problem is, there are 260 rows from the database, and in the PART_GridViewVirtualizationPanel, we can only saw 19. And i use this code : // find the virtualizing panel UIAutomation virtualPanel = SalesBORepository.Instance.Portal.SilverlightObject.SalesBOFrame.GridView.FindS...
- Thu Jan 09, 2014 11:33 am
- Forum: Automation API
- Topic: Best way to search by text in a gridview
- Replies: 18
- Views: 9117
Re: Best way to search by text in a gridview
Here is the snapshot of the gridview, this is my first time saving a snapshot, i hope it's good
- Thu Jan 09, 2014 9:53 am
- Forum: Automation API
- Topic: Best way to search by text in a gridview
- Replies: 18
- Views: 9117
Re: Best way to search by text in a gridview
Can you post a snapshot of the application under test? I might be able to see something you missed. If you can't, no worries. http://www.ranorex.com/support/user-guide-20/lesson-9-ranorex-spy/creating-ranorex-snapshot-files.html Will do it today or at the latest tomorrow. Thanks for your help :)