Logo QF-Test

Finding valuable answers
in the Mailing List Archive.


Free Trial  Download  Buy

Thomas Max, QF-Test training and support

Use the full-text search on our web site to find helpful tips on the mailing list.

Thomas Max, 
Sr. Software Engineer & Trainer, QFS

2017 up to now  | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2012

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] Selected State of EXTJS Tree Node with Checkbox

  • Subject: Re: [QF-Test] Selected State of EXTJS Tree Node with Checkbox
  • From: "Robert Lahmer, QFS support" <support@?.de>
  • Date: Mon, 23 Apr 2012 16:22:48 +0200

Hello Jim,

in fact, the current implementation of the internal Extjs-Resolver (1.2.0) redirects events to the tree node so that the checkbox is not resolved (even for check recording). To overcome the problem you can use an 'SUT script' like

def checkSelected(node):
   cbs = node.getElementsByClassName("INPUT:CHECKBOX")
   checked = cbs[0].getAttribute("checked")
   rc.check(checked == "true" or checked == "1", "Checkbox selected")

node = rc.getComponent("myTreeNode")

Alternatively, you can record the tree node component with all children (i.e. including the INPUT element) using 'Record / Record components' and insert a corresponding 'Check boolean: selected' node by hand.

Best regards,

--On Freitag, April 20, 2012 08:28:16 -0500 Jim Zhang <zhangminhua@?.com> wrote:

I was trying to record checks of the selected state of a "extjs tree node
with checkbox" but I do not see an option for "selected state" as I get
with a regular checkbox component.  It seems qf only finds the wrapper of
the checkbox but not the checkbox itself. Is there way to work around it?
A sample extjs tree node can be found here.
Thanks a lot.
Jim Zhang

QFS Support - Robert Lahmer
Quality First Software GmbH                http://www.qfs.de
Tulpenstr. 41                         Tel: +49 8171 38648-20
DE-82538 Geretsried                   Fax: +49 8171 38648-16
GF: Gregor Schmid, Karlheinz Kellerer     HRB München 140833

Videos Downloads Documentation Buy Free Trial