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
Problems installing the AjaxControlTooKit.dll
Related Combobox Data Population
asp - The resource could not be found
100% CPU usage in vCenter but not in taskmanager on the Windows NT 4.0 VM that has been converted
Remove header from array created using Get-QADComputer cmdlet?
Referencing merged cells using the "Indirect" function
Network Range of IPs and what is available.
Couple of Apple questions
Changing Domain Controllers + DNS - How to get new clients to accept new DNS server
Router Sessions