List Icon
Archive de la liste de diffusion

La liste de diffusion est fermée depuis juillet 2022, mais sert toujours d'archive d'informations sur QF-Test.
Cependant, si vous souhaitez rester informé des nouveautés concernant QF-Test, vous pouvez simplement vous
abonner à la newsletter 

our obtenir des informations à jour sur chaque version - y compris les versions mineures - vous pouvez
nous pouvez vous abonner au flux RSS ou nous suivre sur les médias sociaux.
Alternativement, QF-Test fournit également des informations sur la version elle-même.

Une autre source d'information est notre blog, qui contient des articles actuels sur des thèmes généraux, sur l'entreprise QFS et aussi divers "how-tos", veuillez vous
ABonner au Blog


[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