Search found 11 matches

by Fent12
Wed Apr 19, 2017 1:38 am
Forum: Automation API
Topic: Does Ranorex have some API to modify the xpath string
Replies: 4
Views: 2320

Does Ranorex have some API to modify the xpath string

For example: string xpath_str = @"/form[@controlname='Form1']/button[@controlname='button1']" And i want to modify or add the button attribute to control other button for example ,i modify to "/form[@controlname='Form1']/button[@controlname='button1111' and @ControlText = 'fffffff]" Does ranorex hav...
by Fent12
Sat Apr 01, 2017 3:35 am
Forum: General Questions
Topic: How to express this Xpath
Replies: 5
Views: 1882

Re: How to express this Xpath

I understand now, this can use the xpath 'axis' to get it, for this question we can use like this '.....container/button[@Text='button3']/parent::*' this mean select current node parent(container) But,this only for parent, if no the parent node,like this: '.../treeitem/container/container[2]/treeite...
by Fent12
Sat Apr 01, 2017 2:55 am
Forum: General Questions
Topic: How to express this Xpath
Replies: 5
Views: 1882

How to express this Xpath

I want to get a container that his have a button that have attribute @Text= 'Button1'
How to experess this XPATH ,i try a lot of ,but alway raise expection 'Invalid RXPATH'
by Fent12
Mon Mar 27, 2017 9:04 am
Forum: General Questions
Topic: How to get TreeItem text color
Replies: 10
Views: 1840

Re: How to get TreeItem text color

Hi, I'm using latest 6.2.1, however, I've not tried the above code. Simply, I don't have a sample app where I could try it ;) If you can provide such sample app, I may try it. It does not have to be the actual AUT. Just a small sample app with problematic tree control should be enough. The above co...
by Fent12
Mon Mar 27, 2017 2:37 am
Forum: General Questions
Topic: How to get TreeItem text color
Replies: 10
Views: 1840

Re: How to get TreeItem text color

I think this code should be enough to obtain the background color of provided tree element?... string str_temp = "/form[@controlname='Form1']/container[@controlname='splitContainer1']/?/?/tree[@controlname='treeView1']//treeitem[@accessiblename='Node5']"; Ranorex.TreeItem tree_item = null; bool aa ...
by Fent12
Fri Mar 24, 2017 11:02 am
Forum: General Questions
Topic: How to get TreeItem text color
Replies: 10
Views: 1840

Re: How to get TreeItem text color

odklizec,thanks for response

I only want to try the method in post that you gived;

Do you mean that ,the tree item (Node5) text color or back color can get from the var tree_item ?
can you know which API can get it ?

thks
by Fent12
Fri Mar 24, 2017 10:16 am
Forum: General Questions
Topic: How to get TreeItem text color
Replies: 10
Views: 1840

Re: How to get TreeItem text color

odklizec,thanks for response I try to the post you gived, but when run ,it raise expection " The element does not support the required capability 'control'. " do you know how to handle this ? my code like below string str_temp = "/form[@controlname='Form1']/container[@controlname='splitContainer1']/...
by Fent12
Fri Mar 24, 2017 4:33 am
Forum: General Questions
Topic: How to close the Console log print
Replies: 5
Views: 2184

Re: How to close the Console log print

MohBenista wrote:The false command will disallow it completely? Did it work?
Yes it work well!
I develop in vs2010,no ranorex studio!
by Fent12
Fri Mar 24, 2017 4:26 am
Forum: General Questions
Topic: How to get TreeItem text color
Replies: 10
Views: 1840

How to get TreeItem text color

I want to get TreeNode text color and backcolor,like node5, i try like this ,but the object 'box_c' return null string str_temp = "/form[@title='Form1' and @processname='test_tree' and @controltypename='Form1' and @instance='0']/container[@controlname='splitContainer1']/?/?/tree[@controlname='treeVi...
by Fent12
Wed Mar 22, 2017 8:05 am
Forum: General Questions
Topic: How to close the Console log print
Replies: 5
Views: 2184

Re: How to close the Console log print

This question have solved
Use
TestReport.Setup(ReportLevel minLevel, string fileName, bool logToConsole)
to set the log environment

if don't want the console log ,can set the logToConsole = false
by Fent12
Tue Mar 21, 2017 9:49 am
Forum: General Questions
Topic: How to close the Console log print
Replies: 5
Views: 2184

How to close the Console log print

When run the case, the console may print a lot of info , like this: [2017/03/21 16:15:13.956][Debug ][Logger]: Console logger starting. ... [2017/03/21 16:15:20.015][Debug ][Logger]: Console logger stopping. but I don't want to print this ,i want only my custom logger somebody know how to close or f...