public class Form extends Frame
Constructor and Description |
---|
Form(WebClient client,
String locator)
Initializes new instance of the Web Form object.
|
Modifier and Type | Method and Description |
---|---|
String |
action()
Retrieves the URL or script name which should be executed when Submit button is clicked.
|
String |
method()
Returns the name of the method which should be used to transfer the data.
|
String |
name()
Returns the form name.
|
void |
submit()
Submits current form by clicking the button which is defined as the type submit and belongs to current form.
|
exists, getClient, getLocation, getLocator, getSize, getURL, innerHtml, setClient, setLocator, switchTo
public final String action() throws RemoteException
RemoteException
- thrown when there's no connection with the server or some other connectivity problems.public final String method() throws Exception
Exception
- .public final String name() throws RemoteException
RemoteException
- thrown when there's no connection with the server or some other connectivity problems.public final void submit() throws RemoteException
RemoteException
- thrown when there's no connection with the server or some other connectivity problems.Copyright © 2013. All rights reserved.