Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to use watin to test Ajax wedsites?
    primarykey
    data
    text
    <p>//using watin test some ajax sites,when click td,div("appendProdctTreeDiv") will show some response html,but i don't know how to get this div innerhtml and click link whick i wanna; can give some examples by test “http://www.google.com/ig”?thanks in advance!</p> <p><br/>------using watin--------<br/> IE ie = new IE(); <br/> ....<br/> ie.Element(Find.ById("tree")).Click();<br/> textbox1.text=ie.Div("appendProdctTreeDiv").innerHtml;// this way is wrong;<br/> ...<br/></p> <hr> <p>..html code..<br/></p> <p>&lt;'TD id=tree onclick=showAppendProductTree() noWrap>tab1&lt;'/TD><br/></p> <p>....<br/></p> <p>&lt;'DIV style="WIDTH: 100%; HEIGHT: 96%; OVERFLOW: auto" id=appendProdctTreeDiv loaded="false">&lt;'/DIV> <br/> ....<br/></p> <hr> <p>function showAppendProductTree(){</p> <pre><code>showTreeTab(3); </code></pre> <p>if(document.getElementById("appendProdctTreeDiv").loaded == "false" ){</p> <pre><code> var url ="product!changeAppendProduct.do"; var params = ""; var newProductId = document.getElementById("newProductId").value; new Ajax.Request( url, { method: 'get', parameters: params+"&amp;random="+Math.random(), requestHeaders:["Cache-Control","no-cache"], onComplete: function(originalRequest){ var message = originalRequest.responseText; document.getElementById("appendProdctTreeDiv").innerHTML= message; document.getElementById("appendProdctTreeDiv").loaded = "true"; synAppendTree(); document.getElementById("waitLoadAppendProd").style.display = "none"; document.getElementById("searchDiv").style.display = "block"; } }); } </code></pre> <p>}</p> <p>function showTreeTab(tabId) {</p> <pre><code>document.getElementById("treeDiv").style.display ="block"; for(var i=1;i&lt;=3;i++){ if(i==tabId){ document.getElementById("tree"+i).style.display = "block"; } else{ document.getElementById("tree"+i).style.display = "none"; } } </code></pre> <p>}</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload