📜  如何在 selenium c# 代码示例中使用 javascriptexecutor for 循环

📅  最后修改于: 2022-03-11 14:48:43.442000             🧑  作者: Mango

代码示例1
String script3 = "return document.getElementsByTagName('g')[" + f9 + "].textContent";
n = (String) ((JavascriptExecutor) driver).executeScript(script3, hiddenDiv);