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