Mailingliste - Einträge 2015
Die Mailingliste ist seit Juli 2022 geschlossen, dient aber weiterhin als Informationsarchiv zu QF-Test.
Wenn Sie über Neuerungen zu QF-Test informiert bleiben wollen, können Sie einfach unseren Newsletter abonnieren:
Newsletter abonnieren
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [QF-Test] PDF in web browser - saveAsText
Hello Marek, thanks for the hint. This might be caused by some Adobe Acrobat Reader Update and it is still behaving a bit different on several machines. On my machine it's wxWindowNR and on another one it is wxWindowClassNR. We will integrate this in the next QF-Test release with a slight change to match both variants: if w.isVisible() and (cname=="wxWindowClassNR" or cname=="wxWindowNR"): Concerning your second question about adding the "inlineDisplay" parameter to qfs.autowin.acrobat.saveAsText as well. This might make no sense because the inline displayed PDF provides no option to save it as text. Best regards, Thomas -------- Original Message -------- Hello Thomas, I am running Windows 7 64bit, QF-Test version 4.0.7 and Adobe Acrobat Reader XI version 11.0.12 I have upgraded the acrobat to DC version 2015.008.20082 and I was still unable to save the page with save PDF or saveAsText. Maybe I was doing something wrong: I started the Internet Explorer browser with url of the pdf file. Then I called procedure qfs.autowin.acrobat.savePDF with following parameters: filename: C:\work\seite.pdf Title: Browser-Fenster – Dokument Name - Windows Internet Explorer titleRegexp: false dialogTitle: Speichern unter.*|Save .s.*|Save a Copy.*|Kopie speichern.* timeout: 30000 overwriteExistingFile: false windowtimer: 30000 savetimer: 3 inlineDisplay: false That didn’t work, it just threw UserException "Cannot find an open Adobe Reader window". Then I started playing with the savePDF script and figured out, what was possibly wrong – the function findInlinePDFWindow. In this method the expected window class is “wxWindowNR” but on my system it is “wxWindowClassNR”. Other problem is that the following condition for the window name checks only empty string. When I changed it, it started to work. This is the new method: def findInlinePDFWindow(): wins = Wnd.getAllWindows() for w in wins: cname = w.getWindowClassName(); if w.isVisible() and cname=="wxWindowClassNR": wname = w.getWindowText() title = rc.lookup("title") regTitle = re.compile(title) if regTitle.match(wname): childs = Wnd.getChildWindows(w) for c in childs: cText = c.getWindowText() name = ".*Adobe.*Reader.*" reg = re.compile(name) if reg.match(cText): window = c return window It would be nice to fix this in a next patch and also improve the SaveAsText function to accept the “inlineDisplay” parameter. Cheers Marek _______________________________________________ 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
|
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.