1
網頁源代碼:無法通過Selenium Webdriver找到元素?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html dir="ltr" lang="en">
</head><script>var _AdfWindowOpenError='A popup window blocker has been detected in your browser. Popup blockers interfere with the operation of this application. Please disable your popup blocker or allow popups from this site.';</script>
<script src="/dc4custmanager/adf/jsLibs/Common10_1_3_4_0.js"> </script><script language="javascript">document.onkeydown=_noReload;var _blockReload=1;function _fixDialogTitle(){window.document.title=window.frames[0].document.title};</script>
<frameset title="Content" rows="100%,*" onload="_fixDialogTitle(); _sizeWin(window.frames[0],0,30)" onunload="_checkUnload(event)">
<frame title="Content" frameborder="0" noresize src="/dc4custmanager/faces/view/edi/editEdiInfo.jsp?_afPfm=1.2&loc=en" longdesc="#">
<noframes>Your browser does not support frames. Frames support is required for this functionality</noframes>
我能夠找到通過Firefox瀏覽正常IDE元素。但我無法通過webdriver找到元素。在這裏我使用鉻。請幫助我找出要素?
你想找到哪個元素,什麼樣的XPath/CSS選擇您到目前爲止試過嗎? 此外,你可以格式化你的代碼,所以它會更具可讀性。選擇代碼並從格式工具欄中單擊「{}」 –