2
有没有办法在iFrame
内读取的style
属性? 我试过使用Body
,NativeElement
,Frame
和其他Properties
的多个组合,但到目前为止我没有运气。WatiN从iframe的身体读取属性
<iframe id="iFrame" width="100%" height="500" frameborder="0" src="some source">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body style="margin: 0px; padding: 0px;height:500px;">
</body>
</html>
</iframe>
例子:
_browser.Frame(Find.ById(frameId)).Body.GetAttributeValue("style")
你有没有尝试过:_browser.Frame(Find.ById(frameId))Body.Style。 – alonp 2012-04-02 20:08:36
稍后再试,谢谢。 – iCantSeeSharp 2012-04-03 14:02:49