If user want to insert text to elements like Div, Span, p tags etc....
Need to insert "innerHTML" using javascript+Webdriver
driver.get("http:// virtualbuffer.blogspot.in/");
String jScript = "var myList = document.
getElementsByClassName(\"post- header\");"
+"myList[0].innerHTML=\" YourNumber\";";
JavascriptExecutor executor = (JavascriptExecutor)driver;
executor.executeScript( jScript);
Need to insert "innerHTML" using javascript+Webdriver
driver.get("http://
String jScript = "var myList = document.
+"myList[0].innerHTML=\"
JavascriptExecutor executor = (JavascriptExecutor)driver;
executor.executeScript(
No comments:
Post a Comment