One of my html pages has the following
<EMBED ID="PdfEmbed" WIDTH=100% HEIGHT=700 SRC="/WxTVBrief/GUI/blob/preview.pdf" HREF="/WxTVBrief/GUI/blob/preview.pdf">
I would like to write a test case that would check the SRC and HREF property values.
It is easy to extract the EMPED element
HTMLElement pdfElement = resp.getElementWithID( "PdfEmbed");
But when I extract the SRC property I get a empty string:
String url = pdfElement.getAttribute( "SRC"); assertEquals( "/WxTVBrief/GUI/blob/preview.pdf", url)
Is there a work around for this?
Ta Richard
Log in to post a comment.
One of my html pages has the following
<EMBED ID="PdfEmbed" WIDTH=100% HEIGHT=700 SRC="/WxTVBrief/GUI/blob/preview.pdf" HREF="/WxTVBrief/GUI/blob/preview.pdf">
I would like to write a test case that would check the SRC and HREF property values.
It is easy to extract the EMPED element
HTMLElement pdfElement = resp.getElementWithID( "PdfEmbed");
But when I extract the SRC property I get a empty string:
String url = pdfElement.getAttribute( "SRC");
assertEquals( "/WxTVBrief/GUI/blob/preview.pdf", url)
Is there a work around for this?
Ta
Richard