我試圖根據返回的onclick數據使用python和selen進行自動化。在javascript中返回onclick的動態值
這是HTML代碼
<li id="Region" title="Region" val="1" onclick="hierarchyChangedCommand(this); return false;" sname="Input" class="groupItem"> 1 </li>
<li id="Product" title="Product" val="2" onclick="hierarchyChangedCommand(this); return false;" sname="Input" class="groupItem"> 2 </li>
hierarchyChangedCommand返回根據地區或點擊點擊產品動態層次。我如何獲得層次結構值。新的蟒蛇和硒。真的很感謝幫助。
當您單擊這些項目,你需要找到_where_新的數據返回到後以及現場被填充,如'div'。 – Faiz