Z
Z
ZaurK2017-02-09 11:41:53
JavaScript
ZaurK, 2017-02-09 11:41:53

Why isn't all html saved?

Greetings! There is such markup

<iframe id="iframeViewer3D" width="340" height="210" scrolling="no" src="/global/viewer.aspx?mode=3DWebGL&amp;xmp=-1-59-flexible_shaft_coupling_c172903000300.xmp&amp;previewCad=flexible_shaft_coupling_c172903000300&amp;h=210&amp;w=340&amp;version=3&amp;Lang=en&amp;fwsid=3DCC&amp;CF=0&amp;PMLOG=1&amp;DisplayMode=small&amp;manId=ACCES"></iframe>

I need to save this code, I use casperjs, here is the corresponding section of javajsript code:
var link = casper.getHTML('#iframeViewer3D', true);

But in the end I get some cropped
<iframe id=\"iframeViewer3D\" width=\"340\" height=\"210\" scrolling=\"no\"></iframe>

I don't understand why the link is being cut off? Please tell me what could be the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Labunsky, 2017-02-10
@Labunsky

Check if src is static or generated during/after page load

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question