2019 up to now | 2018 2017  |  2016  | 2015 | 2014 | 2013 | 2012

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