【发布时间】:2022-01-12 20:43:13
【问题描述】:
我在 C# 中使用 selenium webdriver,
<iframe class="x-component x-fit-item x-component-default" id="component-1105" name="ets_grd_02_IFrame" src="frm_01_master_training_plan.aspx?RID=196&RIU=U&_dc=1641984641351" frameborder="0" style="margin: 0px; width: 718px; height: 535px;"></iframe>
我需要获取这个元素的 src 属性。我可以在这个 iframe 内部定位并对该 iframe 内部的表单进行操作,但我无法获取 src 属性。
【问题讨论】:
-
到目前为止你尝试了什么并且有代码?
标签: c# selenium xpath iframe css-selectors