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
Mysql query browser and Character set
Case statement based on query
how to stop sql execution on refreshing a page or closing a browser
What is the extension to bring in a 2007 Excel xlsm workbook into Access 2007?
Globally change the Blackberry Service Display name
pop up panel
Looking for NETWORKDAYS VBA Equivalent without Analysis ToolPack or Analysis ToolPack VBA
one code fits all : INDY9 or INDY 10 with D7 or D2005 or D2010Question:
Creating a new Array and Logical Drive
Itunes Boujour Service Errors