List Icon
Archiv Mailingliste

2019 bis Juli 2022  2018  | 2017 2016 2015 | 2014 | 2013

Die Mailingliste ist seit Juli 2022 geschlossen, dient aber weiterhin als Informationsarchiv zu QF-Test.
Wenn Sie aber über Neuerungen zu QF-Test informiert bleiben wollen, können Sie einfach unseren
Newsletter abonnieren

Um aktuell die Informationen zu jeder Release - auch Minor Releases - zu bekommen, können Sie den
RSS-Feed abonnieren oder uns in sozialen Medien folgen.
Alternativ bietet QF-Test auch selbst eine Versionsinformation an.

Eine weitere Informationsquelle ist unser Blog, in dem es aktuelle Beiträge zu allgemeinen Themen, zur Firma QFS und auch diverse "How-Tos" gibt:
Blog abonnieren


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

Re: [QF-Test] Hov can i read the "array(de.qfs.apps.qftest.client.web.dom.Node)"?


  • Subject: Re: [QF-Test] Hov can i read the "array(de.qfs.apps.qftest.client.web.dom.Node)"?
  • From: "Thomas Max, QFS Support" <support@?.de>
  • Date: Fri, 12 Feb 2016 11:14:03 +0100

Hello Alexander,

there are 2 problems:

1) getChildrenByTagName returns just the direct children, but below the
TABLE there is TBODY,TR,TD

so in your case is a array with length 0.

2) The <TITLE> tag is a reserved tag which is used to set the title of
the browser window. So by definition there is only one title tag allowed
at all and those tags are basically completely inaccessible inside the
dom structure. So you either need to use a different tagname or check
for the content of the span nodes.

The get the displayed value you can then use :

node.getText()

Best regards,
   Thomas

On 2/8/16, 3:05 PM, Straub, Alexander wrote:
Hi,

i have an problem with read cell of tabel.

Test run for an Webapplication.

I go to an cell over this way: tableAdminResult&0&0. The cell‘s has an
„span“ element’s (it can more then one) with „title“ elemnts. This
elment must be read by the test.

I found an way the give my the input, but i can read real input in the cell.

This is the code:

<code>

idOfCell = rc.lookup("idOfCell") (tableAdminResult&0&0)

tagName = rc.lookup("searchTag") (span)

table = rc.getComponent(idOfCell)

# then get the value of the table cell

Cell = table.getChildrenByTagName(tagName)

print table

for topic in Cell:

title= topic.getElementsByTagName('title')

print title

for x in len(title):

print title [x]

</code>

The variable „title“ has: array(de.qfs.apps.qftest.client.web.dom.Node)

My question is, how can I read the input?

Thanks

Alexander

_______________________________________________
qftest-list mailing list
qftest-list@?.de
https://www.qfs.de/mailman/listinfo/qftest-list


--
_______________________________________________________________
Get the most out of QF-Test - Support directly from the authors
* Training & consulting: www.qfs.de/en/qftest/training.html
* Phone & email support: www.qfs.de/en/qftest/support.html
_______________________________________________________________

Thomas Max
Development & Support

E: support@?.de
T: +49 8171 38648-20
F: +49 8171 38648-16

Quality First Software GmbH | www.qfs.de
Tulpenstr. 41 | 82538 Geretsried | Germany
GF Gregor Schmid, Dr. Martina Schmid, Karlheinz Kellerer
HRB München 140833