Mailingliste - Einträge 2016
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [QF-Test] Unable to get the state of a checkbox
Hi Michael, your web-page is a good sample how you could extend QF-Test to recognize custom HTML objects. The short answer: Insert a procedure call to qfs.web.ajax.installCustomWebResolver from the qfs.qft as last step of your Setup node. Then set the parameter "genericClasses" to checkbox=CheckBox. In case you have already such a call or a call to qfs.web.ajax.installToolkitResolver, please replace that call with the new one. The long explanation: As HTML as no clear definition which object represent a button or a checkbox there are lots of toolkits around which create whatever they want to create. In order to make a generic tool like QF-Test working with such a flexible and generic infrastructure, it's required to "translate" the custom HTML structure to the vocabulary of QF-Test generic classes. Let's take a look at your case: If you analyze that checkbox with any developer tools for web-pages you will see that this checkbox has the following HTML code: <div class="checkbox c-checkbox"> <label> <input ...> <span.... </label> </div> Whenever you record clicks the "span" node get all clicks, because this node is drawn over the actual input node. So now we need to find a way how we can translate that structure to the QF-Test generic classes. This translation happens via the "qfs.web.ajax.installCustomWebResolver" procedure from the qfs.qft. At this call you have the parameter "genericClasses" which you can use to translate the css-classes of your application to QF-Test generic classes. In your case the <div> node actually represents the entire checkbox and it has a meaningful class attribute, so I translated this into a QF-Test "CheckBox". That's why the short reply has checkbox=CheckBox in the parameter. You can find more information about this in the manual: Chapter "38.3 Customizing Qf-Test for your AJAX toolkit". BTW: In November there will be a special webinar dealing with this topic. Best Regards, Martin Am 30.08.2016 um 13:00 schrieb Michael.Gruenenwald@?.ch: Hello, I'm trying to get the state of a checkbox on a website. I can tick and untick the checkbox using the "mouse event" node, but I cannot read its state. I tried the "check boolean" node and the procedures at qfs.web.checkbox.deselect and qfs.web.checkbox.select. No success, I always get this error message: "This kind of check is not possible for a component of class 'de.qfs.apps.qftest.client.web.dom.DomNode'.". I'm using QF-Test 4.0.11. Any suggestions to get it work? In order to reproduce the issue, please go to: https://advancedtomato.com/demo/status-overview.asp#basic-time.asp and choose the checkbox at "Auto Daylight Savings Time". Thanks in advance for your feedback. Best regards, Michael Securiton AG, Alarm- und Sicherheitssysteme *Michael Grünenwald*, Testingenieur ELS Hauptsitz, Alpenstrasse 20, CH-3052 Zollikofen Tel. +41 31 910 17 35, Fax +41 31 910 13 03 michael.gruenenwald@?.ch | www.securiton.ch <http://www.securiton.ch/> --------------------------------------------------------------------------------------------------------- This e-mail is confidential and may contain privileged information. It is intended only for the addressees. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message from your system. --------------------------------------------------------------------------------------------------------- _______________________________________________ qftest-list mailing list qftest-list@?.de https://archive.qfs.de/mailman/listinfo/qftest-list -- Martin Moser E: martin.moser@?.de T: +49 8171 38648-14 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
|
Wir verwenden Cookies zur anonymisierten Auswertung Ihres Besuchs auf unserer Webseite durch »Matomo«. Dafür benötigen wir Ihr Einverständnis, welches für zwölf Monate gilt. Ein Widerruf bzw. Opt-out ist jederzeit auf unser Datenschutz-Seite möglich.
1. Funktionale Cookies
Wir verwenden funktionale Cookies, um die Basisfunktionalität der Webseite zu gewährleisten.
2. Performance und Statistik Cookies
Wir verwenden Matomo zur Analyse und Optimierung unserer Webseite. Cookies erlauben eine anonyme Erfassung der Informationen und helfen uns, Ihnen einen benutzerfreundlichen Besuch unserer Webseite zu bieten.
Dieses Cookie enthält eine eindeutige jedoch pseudonymisierte Matomo-interne Besucher-ID zur Erkennung wiederkehrender Besucher.
Dieses Cookie wird verwendet, um zu tracken, von welcher Website der anonymisierte Benutzer auf die Website gekommen ist.
Das Session Cookie von Matomo wird verwendet, um die Seitenanforderungen des Besuchers während der Sitzung zu verfolgen.
wird erzeugt und versucht sofort wieder zu löschen (zur Prüfung, ob der Browser des Besuchers Cookies unterstützt).
Kurzzeit-Cookies für temporäre Besuchsdatenspeicherung.
Kurzzeit-Cookies für temporäre Besuchsdatenspeicherung.