A B C D E F G H I K L M N O P R S T U V W X

S

saveDownloadedAs(String) - Method in class net.sf.sahi.client.Browser
Saves the last downloaded file to required location.
Can be used to save file to some location and then verify contents by reading it.
searchbox(Object...) - Method in class net.sf.sahi.client.BrowserElements
Defines a searchbox.
select(Object...) - Method in class net.sf.sahi.client.BrowserElements
Defines a select on a drop down.
selectedText() - Method in class net.sf.sahi.client.ElementStub
Returns the selected text visible in a select box (<select> tag).
Same as getSelectedText().
Internally calls browser.getSelectedText(this);
selectRange(ElementStub, int, int) - Method in class net.sf.sahi.client.Browser
Sahi waits for AJAX readyStates 1,2 and 3.
selectTextRange(ElementStub, String, String) - Method in class net.sf.sahi.client.Browser
Selecting text for manipulation (like selecting text in a Rich Text Editor to change font to bold)
selectTextRange(ElementStub, String) - Method in class net.sf.sahi.client.Browser
Selecting text for manipulation (like selecting text in a Rich Text Editor to change font to bold)
sessionId() - Method in class net.sf.sahi.client.Browser
 
setBrowserJS(String) - Method in class net.sf.sahi.client.Browser
Allows given javascript to be injected into the browser.
Custom functions or stubbed functions can be passed through this
The given javascript will be available to every web page in this session
Equivalent to adding <browser> blocks in Sahi Script

Eg.
browser.setBrowserJS("function myFinderFn(i){return document.links[i];}");
// The above code defines a function myFinderFn, which will be available on each page of the application.
browser.setBrowserJS("function checkFileFieldIsPopulated(){return true}");
// The above code will redefine checkFileFieldIsPopulated function so that it will always return true
setFile(ElementStub, String) - Method in class net.sf.sahi.client.Browser
Sets the file to be posted to the server via a file input field.
setFile(ElementStub, String, String) - Method in class net.sf.sahi.client.Browser
Sets the file to be posted to the server via a file input field.
setFile(String) - Method in class net.sf.sahi.client.ElementStub
Sets the value of this file upload element.
This method will do nothing for elements which are not file upload fields.
Internally calls browser.setFile(this, value);
setFile2(ElementStub, String, String) - Method in class net.sf.sahi.client.Browser
Sets the file to be posted to the server via a file input field.
setFile2(ElementStub, String) - Method in class net.sf.sahi.client.Browser
Sets the file to be posted to the server via a file input field.
setFile2(String, String) - Method in class net.sf.sahi.client.ElementStub
 
setFile2(String) - Method in class net.sf.sahi.client.ElementStub
Sets the value of this file upload element.
This method will do nothing for elements which are not file upload fields.
Internally calls browser.setFile(this, value);
setSessionId(String) - Method in class net.sf.sahi.client.Browser
 
setSpeed(int) - Method in class net.sf.sahi.client.Browser
Sets the speed of playback.
Some applications do not trigger AJAX requests on response to events, but use a small delay before execution.
It is useful to tweak this parameter (eg.
setStrictVisibilityCheck(boolean) - Method in class net.sf.sahi.client.Browser
Sets strict visibility check.
If true, Sahi APIs will ignore hidden elements.
Useful when similar widgets are generated but only one widget is displayed at any time
Can set to true globally from sahi.properties/userdata.properties by setting
element.visibility_check.strict=true
setTranslationMode(boolean) - Method in class net.sf.sahi.client.Browser
Sets the translation mode as true or false
setValue(ElementStub, String) - Method in class net.sf.sahi.client.Browser
Sets the value in a form element
setValue(String) - Method in class net.sf.sahi.client.ElementStub
Sets the value of this form element.
This method will do nothing for elements which do not have a value attribute.
Internally calls browser.setValue(this, value);
setXHRReadyStatesToWaitFor(String) - Method in class net.sf.sahi.client.Browser
 
span(Object...) - Method in class net.sf.sahi.client.BrowserElements
Defines a span element.
spandiv(Object...) - Method in class net.sf.sahi.client.BrowserElements
Deprecated. 
start(boolean) - Method in class net.sf.sahi.Proxy
Starts the proxy.
startRecording() - Method in class net.sf.sahi.client.Browser
Starts recording.
stop() - Method in class net.sf.sahi.Proxy
Stops the proxy.
stopCurrentIntance() - Static method in class net.sf.sahi.Proxy
 
stopRecording() - Method in class net.sf.sahi.client.Browser
Stops recording.
strong(Object...) - Method in class net.sf.sahi.client.BrowserElements
Defines strong.
style(ElementStub, String) - Method in class net.sf.sahi.client.Browser
Returns the computed css style
style(String) - Method in class net.sf.sahi.client.ElementStub
Returns the computed css style
eg.
submit(Object...) - Method in class net.sf.sahi.client.BrowserElements
Defines a submit button.

A B C D E F G H I K L M N O P R S T U V W X