Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHTML: Manually specify component id and/or XPath
https://www.eclipse.org/forums/index.php/mv/msg/367767/896689/#msg_896689
it's unique HTML-id-Tag
its position in DOM by XPath
For a number of components the current solution ("Click in Browser") works well for about 2/3 of the time, but fails for 1/3, which renders some HTML-testing inaccessible to Jubula.
Depending on the availability of id-Tags in (dynamic) HTML-pages, both technical component selection criteria (either XPath or id) would be of great help.
I understand that this is fully supported in Selenium, which is used internally by Jubula.
Therefore two questions:
Is technical component selection based on manually entering an id and/or XPath currently possible?
If not: Is this on Jubula's feature roadmap?
]]>Christina Ballot2012-07-19T11:57:31-00:00Re: HTML: Manually specify component id and/or XPath
https://www.eclipse.org/forums/index.php/mv/msg/367767/898282/#msg_898282
you can set the ID tag in the AUT configuration. This doesn't mean that you don't need to perform the mapping, but it does mean that the unique ID will be used for component recognition.
In terms of the X-path, I don't think there's anything in there. Would setting the Xpath mean that any changes to the component hierarchy result in it not being found? That would seem quite brittle to me ....
Best regards,
Alex]]>Alexandra Schladebeck2012-07-26T06:37:10-00:00Re: HTML: Manually specify component id and/or XPath
https://www.eclipse.org/forums/index.php/mv/msg/367767/898882/#msg_898882
I saw the Jubula demo on testautomation day, Rotterdam NL.
I really like this frame work...Just drag and drop a keyword driven test! I succeeded to complete the tututorial...however when i start using it on my own SUT (HTML/AJAX Based application) i was not able to any object mapping ...so is it possible to add objects manual, with xpath, or an id , because within plain selenium its's possible to "pass" the logon screen like:
...like the first post in this thread, will become xpath available, or can we do manual object edit/mapping
Regards,
Arjan]]>arjan berg2012-07-28T19:19:31-00:00Re: HTML: Manually specify component id and/or XPath
https://www.eclipse.org/forums/index.php/mv/msg/367767/899545/#msg_899545
You should be able to perform the object mapping if the components are of types already recognized by Jubula. What kinds of components are they, and how are they defined?
Best regards,
Alex]]>Alexandra Schladebeck2012-08-01T11:21:23-00:00Re: HTML: Manually specify component id and/or XPath
https://www.eclipse.org/forums/index.php/mv/msg/367767/900143/#msg_900143
Regarding XPath: When using AJAX-frameworks like extJS etc., the page structure is stable, while the ids are not. Also, e.g. extJS does not render comboboxes as HTML-selects, but as complex div-encapsulations. Jubula's way of "click-to-map" is not reliable here, since usually the wrong HTML-element is chosen (due to the complex encapsulations produced by mentioned typical AJAX frameworks). Therefore, XPath is the most promising way to efficiently map logical to technical components here.
Jubula should definitely support both HTML-id-tags and XPath (and also CSS-path-locators).
Surely this should pose no difficult task, since Selenium already _does_ support all those means of locating elements within a given HTML page: Jubula is based on Selenium!]]>Christina Ballot2012-08-04T16:17:47-00:00