Hello Marc,
My answers :
- do you use latest WebTest build? Yes, actually, i use latest Snapshot
(R_1804) but i tried latest version stable 3.0
- does the test need to wait until the dynamic popup is created? No i don't
have any test for that
Further Information :
*Example HTML without popup :*
</div><input name="javax.faces.ViewState" id="javax.faces.ViewState"
value="j_id5" type="hidden">
</form>
</div>
<div class="footer">Mon Footer</div>
</body></html>
=> this is the end of my source page
*With popup i have :*
</div><input name="javax.faces.ViewState" id="javax.faces.ViewState"
value="j_id5" type="hidden">
</form>
</div>
<div class="footer">Mon Footer</div>
<div id="popupContent">
<p>POPUP TITLE/p>
<p>Are you sure you want to delete this entry? </p><input id="td:Ok"
name="td:Ok" value="Delete"
onclick="javascript:Richfaces.hideModalPanel('deletePopup')" type="submit">
<input value="Cancel"
onclick="javascript:Richfaces.hideModalPanel('deletePopup')" type="button">
</div></td></tr></tbody></table></div></div></div><div
class="dr-mpnl-mask-div dr-mpnl-mask-div-transparent rich-mpnl-mask-div"
id="td:deletePopupCursorDiv" style="z-index: -200;"><button
class="dr-mpnl-pnl-button"
id="td:deletePopupLastHref"></button></div><script
type="text/javascript">new ModalPanel('td:deletePopup',
{
width: -1,
height: -1,
minWidth: -1,
minHeight: -1,
resizeable: false,
moveable: false,
left: "auto",
top: "auto",
zindex: 300,onresize: '',onmove: '',onshow: '',onhide:
'',onbeforeshow: '',onbeforehide: '',
domElementAttachment: "",
keepVisualState: false,
showWhenRendered: false,
selectBehavior: "disable",
autosized: false});</script></div>
</body></html>
In blue, i have new section with popup Button. I want simulate this section
<input id="td:Ok" name="td:Ok" value="Delete"
onclick="javascript:Richfaces.hideModalPanel('deletePopup')" type="submit">
I tried <clickButton htmlid="td:Ok"/>, <clickButton name="td:Ok"/> I don't
have any error in test result, but my clickbutton don't have any effect.
It's very strange. i tried with manuel test, and it's OK.
Any ideas ?
Thanks.