SilverLIght对象未通过Selenium Webdriver识别。你能否建议如何继续

时间:2014-04-14 08:46:53

标签: java silverlight selenium selenium-webdriver

Webdriver无法识别xpath:// object [@id =' slPlugin2']。获得" NoSuch元素例外"

***<table class="imgTable photoTable" cellspacing="0">

<tbody>

<tr>

<td colspan="10">

<div id="fileUploadControl312" class="fileUpload t-toolbar t-grid-toolbar t-grid-top" style="display: block;">

<object id="slPlugin2" width="127" height="32" data="data:application/x-silverlight," type="application/x-silverlight">

<param value="white" name="background"/>
<param value="/LMM/ClientBin/FileUpload.xap" name="source"/>
<param value="Url =https://lmmwipqa.blob.core.windows.net/uploads?se=2014-04-14T06%3A45%3A03Z&sr=c&sp=w&sig=tUbcB6GkW6d9Gjo23WKru5W7j%2BsalbOUnJUj7N197kg%3D, Parent =fileUploadControl312, Caption =Add Photo" name="initParams"/>

</object>
</div>
<br/>
</td>
</tr>
</tbody>
</table>****

1 个答案:

答案 0 :(得分:0)

Selenium无法直接访问Silverlight元素。 阅读thisthis。它会让你开始。