Search found 257 matches

by mrt
Fri Feb 23, 2024 3:07 pm
Forum: General Questions
Topic: Get name of binding in data source?
Replies: 1
Views: 162

Re: Get name of binding in data source?

found it: TestCaseNode currentTestcase = (TestCaseNode)TestSuite.Current.CurrentTestContainer; IList<TestSuiteEntry> children = currentTestcase.Children; The TestSuiteEntries then hold a DataBindingMap which includes a dictionary with the requested information. Edit: even easier: Get the current rec...
by mrt
Fri Feb 23, 2024 2:05 pm
Forum: General Questions
Topic: Get name of binding in data source?
Replies: 1
Views: 162

Get name of binding in data source?

Dear all, I am using a data source and pass a variable to a user code method using data binding. How can i get the column name of the data source from only this binding? Ranorex needs to have a reference there, maybe the same that is used to report the warning for "unbound variables", but how can I ...
by mrt
Fri Jan 26, 2024 9:30 am
Forum: How To …
Topic: OR condition in XPath
Replies: 5
Views: 7589

Re: OR condition in XPath

Hello, the support told me it is evaluated from left to right (so 1st attribute together with 2nd, then the result together with 3rd and so on.) I do not know what I did wrong before, but now I can enter round brackets in the RxPath to group and/or clauses as needed like: //tag[@id='5' or (@tagname=...
by mrt
Fri Jan 12, 2024 1:24 pm
Forum: How To …
Topic: OR condition in XPath
Replies: 5
Views: 7589

Re: OR condition in XPath

How is the combine logic for which condition (and, or) is evaluated first?
Usually one would control this by using brackets, but they are automatically removed from RxPath.

These are not the same:

Code: Select all

A or B and X

Code: Select all

(A or B) and X

Code: Select all

A or (B and X)
thanks!
by mrt
Mon Oct 23, 2023 10:03 am
Forum: General Questions
Topic: chrome extension 1.4.0 - redirect
Replies: 8
Views: 7047

Re: chrome extension 1.4.0 - redirect

That's right, unfortunately, it is.
by mrt
Thu Oct 12, 2023 1:51 pm
Forum: Object Identification and Technologies
Topic: Always get last child in RxPath?
Replies: 2
Views: 1984

Re: Always get last child in RxPath?

Thanks, unfortunately that does not work as it would only find the last item if they are on the same hierarchy level, like <tag> <span> <span> </tag I found an intermediate solution by using the array notation like tag//span[][-1] where the first [] returns the array of all matches and [-1] picks th...
by mrt
Wed Oct 11, 2023 9:58 am
Forum: Object Identification and Technologies
Topic: Always get last child in RxPath?
Replies: 2
Views: 1984

Always get last child in RxPath?

Dear folks, Is there any repo path syntax to always retrieve that last child of same elements? e.g. the RxPath should always get the last (and only the last) <span> of these two examples: tag/span tag/span/span I cannot use tag/?/span because this would find both spans in the second example. And I c...
by mrt
Mon Sep 18, 2023 9:03 am
Forum: General Questions
Topic: chrome extension 1.4.0 - redirect
Replies: 8
Views: 7047

Re: chrome extension 1.4.0 - redirect

Any way to provide this alternative manifest.json file? According to Ranorex support the Addon issue is solved and currently in testing cycle, should be in the next release. For some reason I cannot upload a json file to the forum, so here is the content that you can copy&paste: { "action": { "defa...
by mrt
Mon Jul 10, 2023 7:56 am
Forum: General Questions
Topic: chrome extension 1.4.0 - redirect
Replies: 8
Views: 7047

Re: chrome extension 1.4.0 - redirect

Yes, issue is known, I received following workaround from the support for Chrome (I do not use Edge): 1. Open Chrome and navigate to chrome://version in the Address bar 2. Locate the Profile Path as shown below, copy it, and then close Chrome: https://www.ranorex.info/download/file.php?mode=view&id=...
by mrt
Thu Jun 29, 2023 8:17 am
Forum: Object Identification and Technologies
Topic: HTML unary attributes: How to identify attribute without a value?
Replies: 11
Views: 6362

Re: HTML unary attributes: How to identify attribute without a value?

For others who run into the same issue: Main reason seems to be that Ranorex does not recognize all attributes on custom, non-standard HTML elements. GetAttributeValue() GetAttributeValueText() does not work in this case, because according to documentation: Return Value Type: T The attribute value o...
by mrt
Wed May 10, 2023 1:52 pm
Forum: General Questions
Topic: Any way to completely remove blocked testcases from report?
Replies: 1
Views: 480

Re: Any way to completely remove blocked testcases from report?

I found a way by using a custom report template: https://www.ranorex.com/help/latest/ranorex-studio-fundamentals/reporting/report-customization/ round about line 115 in RanorexReport.xsl the section for the pie chart starts: <!-- PIECHART --> <xsl:if test="not(@testentry-activity-type = 'testmodule'...
by mrt
Fri Mar 31, 2023 1:25 pm
Forum: General Questions
Topic: Click item from UserCode with Variable in RxPath
Replies: 1
Views: 837

Click item from UserCode with Variable in RxPath

Dear folks, following scenario: I need to conditionally execute a Click() event on a repository item, where the repo item has a variable in its RxPath. This works without issues when using a separate smart folder with a condition on it. Downside is, when copying the whole folder between different da...
by mrt
Thu Mar 23, 2023 1:38 pm
Forum: Automation Tools
Topic: how to call dynamic RecordingModule in user code
Replies: 2
Views: 1857

Re: how to call dynamic RecordingModule in user code

Calling recordings directly from user code should only be a very very last resort, because it makes your test suite very hard to follow and maintain. In your case, this recording does not more than running an .exe? Then I would suggest running the .exe from c# code with something like Process.Start(...
by mrt
Thu Mar 23, 2023 12:37 pm
Forum: Object Identification and Technologies
Topic: [SOLVED] Get Webdocument from Form?
Replies: 1
Views: 3005

Re: Get Webdocument from Form?

Don't know what I did wrong, got it working now with:

Code: Select all

WebDocument webDoc = MyRepo.Instance.Chrome.Self.FindSingle<WebDocument>("//webdocument[1]");
by mrt
Thu Mar 23, 2023 9:10 am
Forum: Object Identification and Technologies
Topic: [SOLVED] Get Webdocument from Form?
Replies: 1
Views: 3005

[SOLVED] Get Webdocument from Form?

Dear all, in a generic project I have no DOM object, but only the form, e.g. /form[@processname='chrome'] How can I get the WebDocument by using this form? In this 13 years old thread, a suggestion is made with Form webBrowser = "pathToWebBrowserForm"; WebDocument doc = webBrowser.FindSingle("//webd...