Microsoft
Software
Hardware
Network
Question : Find button on form
Hi,
I'm trying to find a button on a webpage, so I can click it. First I find the form where it's contained.
I use this code:
final HtmlButton newDocButton = Form1.getButtonByName("cmd
NewDoc");
assertNotNull("newDocButto
n doesn't return anything", newDocButton);
System.out.println("Found newDocButton.");
newDocButton.click();
But I get this error message:
Exception: com.gargoylesoftware.htmlu
nit.Elemen
tNotFoundE
xception: elementName=[button] attributeName=[name] attributeValue=[cmdNewDoc]
In what other way can I go looking for it?
Thank you,
Ana
Related Solutions:
HtmlUnit to test webpages
Answer : Find button on form
try:
HtmlSubmitInput button = form.getInputByName("cmdNe
wDoc");
Random Solutions
Exchange 2007 - Delivery is delayed to these recipients or distribution lists:
ESXi compatible hardware
Capture Linkbutton click event in Master page from Content page
Curl API , XML parsing problem ?
IE errors on ajax function
SQL Query Help
buffalo Terastation - Network Storage - Admin Password not accepted by Device.
esx 4 update 01 no 64bit server will install
Number of records when appending query via VBA
I messed up my monitor settings