14 Siebel Functional Module

This chapter provides a complete listing and reference for the methods in the OpenScript SiebelFTService Class of Siebel Functional Module Application Programming Interface (API).

14.1 SiebelFTService API Reference

The following section provides an alphabetical listing of the methods in the OpenScript SiebelFTService API.

14.1.1 Alphabetical Command Listing

The following table lists the SiebelFTService API methods in alphabetical order.

Table 14-1 List of SiebelFTService Methods

Method Description

siebelFT.applet

Creates a Siebel Applet element.

siebelFT.application

Creates a Siebel Application element.

siebelFT.attribute

Construct property data of a single attribute.

siebelFT.attributes

Utility function to return a list of property tests.

siebelFT.button

Creates a Siebel Button element.

siebelFT.calculator

Creates a Siebel Calculator element.

siebelFT.calendar

Creates a Siebel Calendar element.

siebelFT.cell

Construct a test data of a table cell.

siebelFT.cells

Utility function to return a list of cell tests.

siebelFT.currency

Creates a Siebel Currency element.

siebelFT.element

Creates a generic Siebel element.

siebelFT.exists

Checks for the existence of a Siebel control.

siebelFT.list

Creates a Siebel List element.

siebelFT.menu

Creates a Siebel Menu element.

siebelFT.pageTabs

Creates a Siebel PageTabs element.

siebelFT.pdq

Creates a Siebel PDQ element.

siebelFT.richText

Creates a Siebel RichText element.

siebelFT.screen

Creates a Siebel Screen element.

siebelFT.screenViews

Creates a Siebel ScreenViews element.

siebelFT.text

Creates a Siebel Text element.

siebelFT.textArea

Creates a Siebel TextArea element.

siebelFT.threadbar

Creates a Siebel Threadbar element.

siebelFT.toolbar

Creates a Siebel Toolbar element.

siebelFT.tree

Creates a Siebel Tree element.


The following sections provide detailed reference information for each method and enum in the SiebelFTService Class of Siebel Functional Module Application Programming Interface.


siebelFT.applet

Creates a Siebel Applet element.

Format

The siebelFT.applet method has the following command format(s):

siebelFT.applet(path);

siebelFT.applet(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

the ID of a previously recorded navigation, used for comparison purposes. May be null.

Returns

a new Applet.

Example

Performs an action on a Siebel Applet element.

String SiebApplet="/siebelft:cas[@ClassName='SiebApplication' " +
   "and @RepositoryName='Siebel Universal Agent']" +
  "/siebelft:cas[@ClassName='SiebScreen' " +
   "and @RepositoryName='Opportunities Screen']" +
  "/siebelft:cas[@ClassName='SiebView' " +
   "and @RepositoryName='Opportunity List View']" +
  "/siebelft:cas[@ClassName='SiebApplet' " +
   "and @RepositoryName='Opportunity Form Applet - Child']";
try{
  String result=siebelFT.applet(10, SiebApplet)
   .childPathFromRepositoryName("SiebTextArea", "Description");
  String expected="/siebelft:cas[@ClassName='SiebApplication' " +
    "and @RepositoryName='Siebel Universal Agent']" +
   "/siebelft:cas[@ClassName='SiebScreen' " +
    "and @RepositoryName='Opportunities Screen']" +
   "/siebelft:cas[@ClassName='SiebView' " +
    "and @RepositoryName='Opportunity List View']" +
   "/siebelft:cas[@ClassName='SiebApplet' " +
    "and @RepositoryName='Opportunity Form Applet - Child']" +
   "/siebelft:cas[@ClassName='SiebTextArea' " +
    "and @RepositoryName='Description']";
  if (!result.equals(expected)) {
   warn("childPathFromRepositoryName returned  " + result);
  }
  }catch(Exception exp) {}

siebelFT.application

Creates a Siebel Application element.

Format

The siebelFT.application method has the following command format(s):

siebelFT.application(path);

siebelFT.application(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

the ID of a previously recorded navigation, used for comparison purposes. May be null.

Returns

a new Application.

Example

Performs an action on a Siebel Application element.

String SiebApplication="/siebelft:cas[@ClassName='SiebApplication' " +
 "and @RepositoryName='Siebel Universal Agent']";
try{
 String expected="/siebelft:cas[@ClassName='SiebApplication' " +
   "and @RepositoryName='Siebel Universal Agent']" +
  "/siebelft:cas[@ClassName='SiebScreen' " +
   "and @RepositoryName='Web Call Center Home Screen']";
 String result=siebelFT.application(10, SiebApplication)
  .childPathFromRepositoryName("SiebScreen", "Web Call Center Home Screen");
 if (!result.equals(expected)) {
  warn("childPathFromRepositoryName returned " + result);
 
 }
 }catch(Exception exp) {}

siebelFT.attribute

Construct property data of a single attribute.

Format

The siebelFT.attribute method has the following command format(s):

siebelFT.attribute(property, expectedValue, operator);

Command Parameters

property

A String specifying the property to test.

expectedValue

a String specifying ther expected value.

operator

a TestOperator that defines the type and the match approach of the data.

Returns

PropertyTest object.

Example

Specifies individual Siebel element attributes.

String path="/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebMenu' " +
  "and @RepositoryName='SiebMenu']";
siebelFT.menu(path).assertAttributes("attributes",
siebelFT.attributes(siebelFT.attribute("ClassName",
  "SiebMenu", TestOperator.StringExact), 
 siebelFT..attribute("RepositoryName", "SiebMenu",
  TestOperator.StringExact), 
 siebelFT..attribute("UIName", "Menu",
  TestOperator.StringExact), 
 siebelFT..attribute("Count", "60",
  TestOperator.StringExact)));
siebelFT.menu(path).assertAttribute("attribute", "UIName", "Menu", 
 TestOperator.StringExact);
try{
 boolean result=siebelFT.element(path).exists();
 if (!result) {
 warn("exists returned  " + result);
 }
 }catch(Exception exp) {}

siebelFT.attributes

Utility function to return a list of property tests.

Format

The siebelFT.attributes method has the following command format(s):

siebelFT.attributes(tests);

Command Parameters

tests

- array of property tests.

Returns

an array of property tests.

Example

Specifies a set of Siebel element attributes.

String path="/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebMenu' " +
  "and @RepositoryName='SiebMenu']";
siebelFT.menu(path).assertAttributes("attributes",
siebelFT.attributes(siebelFT.attribute("ClassName",
  "SiebMenu", TestOperator.StringExact), 
 siebelFT.attribute("RepositoryName", "SiebMenu",
  TestOperator.StringExact), 
 siebelFT.attribute("UIName", "Menu",
  TestOperator.StringExact), 
 siebelFT.attribute("Count", "60",
  TestOperator.StringExact)));
siebelFT.menu(path).assertAttribute("attribute", "UIName", "Menu", 
 TestOperator.StringExact);
try{
 boolean result=siebelFT.element(path).exists();
 if (!result) {
 warn("exists returned  " + result);
 }
 }catch(Exception exp) {}

siebelFT.button

Creates a Siebel Button element.

Format

The siebelFT.button method has the following command format(s):

siebelFT.button(path);

siebelFT.button(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

the ID of a previously recorded navigation, used for comparison purposes. May be null.

Returns

a new Button.

Example

Performs an action on a Siebel Button element.

String SiebButton="/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Accounts Screen']" +
 "/siebelft:cas[@ClassName='SiebView' " +
  "and @RepositoryName='Account List View']" +
 "/siebelft:cas[@ClassName='SiebApplet' " +
  "and @RepositoryName='Account Entry Applet']" +
 "/siebelft:cas[@ClassName='SiebButton' " +
  "and @RepositoryName='NewRecord']";
try{
 Boolean result=siebelFT.button(10, SiebButton).isEnabled();
 if (!result) {
  warn("isEnabled() returned " + result);
 }
 }catch(Exception exp) {}
 
siebelFT.button(15, "/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Accounts Screen']" +
 "/siebelft:cas[@ClassName='SiebView' " +
  "and @RepositoryName='Account List View']" +
 "/siebelft:cas[@ClassName='SiebApplet' " +
  "and @RepositoryName='Account Entry Applet']" +
 "/siebelft:cas[@ClassName='SiebButton' " +
  "and @RepositoryName='DeleteRecord']")
 .click();

siebelFT.calculator

Creates a Siebel Calculator element.

Format

The siebelFT.calculator method has the following command format(s):

siebelFT.calculator(path);

siebelFT.calculator(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

the ID of a previously recorded navigation, used for comparison purposes. May be null.

Returns

a new Calculator.

Example

Performs an action on a Siebel Calculator element.

String SiebCurrency="/siebelft:cas[@ClassName='SiebApplication' " +
   "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Opportunities Screen']" +
 "/siebelft:cas[@ClassName='SiebView' " +
  "and @RepositoryName='Opportunity List View']" +
 "/siebelft:cas[@ClassName='SiebApplet' " +
  "and @RepositoryName='Opportunity Form Applet - Child']" +
 "/siebelft:cas[@ClassName='SiebCurrency' " +
  "and @RepositoryName='Revenue']";
         
String SiebCalculator="/siebelft:cas[@ClassName='SiebApplication' " +
   "and @RepositoryName='Siebel Universal Agent']" +
  "/siebelft:cas[@ClassName='SiebScreen' " +
   "and @RepositoryName='Opportunities Screen']" +
  "/siebelft:cas[@ClassName='SiebView' " +
   "and @RepositoryName='Opportunity List View']" +
  "/siebelft:cas[@ClassName='SiebApplet' " +
   "and @RepositoryName='Opportunity Form Applet - Child']" +
  "/siebelft:cas[@ClassName='SiebCurrency' " +
   "and @RepositoryName='Revenue']" +
  "/siebelft:cas[@ClassName='SiebCalculator' " +
   "and @RepositoryName='Amount']";
siebelFT.currency(SiebCurrency).openPopup();
siebelFT.calculator(10, SiebCalculator).openPopup();
siebelFT.calculator(12, SiebCalculator).clickKey("9");
siebelFT.calculator(14, SiebCalculator).clickKeys("99");
siebelFT.calculator(16, SiebCalculator).processKey("EnterKey");
siebelFT.calculator(18, SiebCalculator).processKey("EnterKey");
try{
  String result=siebelFT.calculator(20, SiebCalculator).getText();
  if (!result.equals("$999.00")) {
   warn("getText returned " + result);
 
 }
 }catch(Exception exp) {}
 try{
  Boolean result=siebelFT.calculator(22, SiebCalculator).isEnabled();
  if (!result) {
   warn("isEnabled returned " + result);
  }
  }catch(Exception exp) {}
 
 try{
  Boolean result=siebelFT.calculator(24, SiebCalculator).isOpen();
  if (result) {
   warn("isOpen returned " + result);
  }
  }catch(Exception exp) {}
  
 siebelFT.currency(SiebCurrency).closePopup();

siebelFT.calendar

Creates a Siebel Calendar element.

Format

The siebelFT.calendar method has the following command format(s):

siebelFT.calendar(path);

siebelFT.calendar(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

the ID of a previously recorded navigation, used for comparison purposes. May be null.

Returns

a new Calendar.

Example

Performs an action on a Siebel Calendar element.

String SiebCalendar="/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Opportunities Screen']" +
 "/siebelft:cas[@ClassName='SiebView' " +
  "and @RepositoryName='Opportunity List View']" +
 "/siebelft:cas[@ClassName='SiebApplet' " +
  "and @RepositoryName='Opportunity Form Applet - Child']" +
 "/siebelft:cas[@ClassName='SiebCalendar' " +
  "and @RepositoryName='CloseDate']";
siebelFT.calendar(SiebCalendar).openPopup();
try{
 String result=siebelFT.calendar(SiebCalendar)
  .getCalendarType();
 if (!result.equals("Date")) {
  warn("getCalendarType returned " + result);
 }
 }catch(Exception exp) {}
 
try{
 String result=siebelFT.calendar(10, SiebCalendar)
  .getDay();
 if (!result.equals("27")) {
  info("getDay returned " + result);
 }
 }catch(Exception exp) {}
 
try{
 String result=siebelFT.calendar(12, SiebCalendar)
  .getMonth();
 if (!result.equals("8")) {
  info("getMonth returned " + result);
 }
 }catch(Exception exp) {}
 
try{
 String result=siebelFT.calendar(14, SiebCalendar)
  .getYear();
 if (!result.equals("2010")) {
  info("getYear returned " + result);
 }
 }catch(Exception exp) {}
 
try{
 String result="none"+siebelFT.calendar(16, SiebCalendar)
  .getTime();
 if (!result.equals("none")) {
  warn("getTime returned " + result);
 }
 }catch(Exception exp) {}

siebelFT.cell

Construct a test data of a table cell.

Format

The siebelFT.cell method has the following command format(s):

siebelFT.cell(row, column, expectedValue, operator);

Command Parameters

row

the row value starting from 1.

column

the column value starting from 1.

expectedValue

a String specifying the expected value.

operator

a TestOperator that defines the type and the match approach of the data.

Returns

CellTest.

Example

Specifies individual Siebel cell elements.

String SiebThreadbar1="/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Activities Screen']" +
 "/siebelft:cas[@ClassName='SiebThreadbar' " +
  "and @RepositoryName='SiebThreadbar']";
siebelFT.threadbar(SiebThreadbar).assertCells("assert", 
 siebelFT.cells(
  siebelFT.cell(1, 1,"Opportunity Detail - Activities View0",
   TestOperator.StringExact)));
siebelFT.threadbar(SiebThreadbar).verifyCells("verify", 
 siebelFT.cells(
  siebelFT.cell(1, 1,"Opportunity Detail - Activities View0",
   TestOperator.StringExact)));
try{
 String result=siebelFT.threadbar(SiebThreadbar)
  .getActiveThreadItem();
 if (!result.equals("Opportunity Detail - Activities View0")) {
  warn("getActiveThreadItem returned  " + result);
 }
 }catch(Exception exp) {}

siebelFT.cells

Utility function to return a list of cell tests.

Format

The siebelFT.cells method has the following command format(s):

siebelFT.cells(tests);

Command Parameters

tests

- array of property tests.

Returns

array of cell tests.

Example

Specifies set of Siebel cell elements.

String SiebThreadbar1="/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Activities Screen']" +
 "/siebelft:cas[@ClassName='SiebThreadbar' " +
  "and @RepositoryName='SiebThreadbar']";
siebelFT.threadbar(SiebThreadbar).assertCells("assert", 
 siebelFT.cells(
  siebelFT.cell(1, 1,"Opportunity Detail - Activities View0",
   TestOperator.StringExact)));
siebelFT.threadbar(SiebThreadbar).verifyCells("verify", 
 siebelFT.cells(
  siebelFT.cell(1, 1,"Opportunity Detail - Activities View0",
   TestOperator.StringExact)));
try{
 String result=siebelFT.threadbar(SiebThreadbar)
  .getActiveThreadItem();
 if (!result.equals("Opportunity Detail - Activities View0")) {
  warn("getActiveThreadItem returned  " + result);
 }
 }catch(Exception exp) {}

siebelFT.currency

Creates a Siebel Currency element.

Format

The siebelFT.currency method has the following command format(s):

siebelFT.currency(path);

siebelFT.currency(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

the ID of a previously recorded navigation, used for comparison purposes. May be null.

Returns

a new Currency.

Example

Performs an action on a Siebel Currency element.

String SiebCurrency="/siebelft:cas[@ClassName='SiebApplication' " +
   "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Opportunities Screen']" +
 "/siebelft:cas[@ClassName='SiebView' " +
  "and @RepositoryName='Opportunity List View']" +
 "/siebelft:cas[@ClassName='SiebApplet' " +
  "and @RepositoryName='Opportunity Form Applet - Child']" +
 "/siebelft:cas[@ClassName='SiebCurrency' " +
  "and @RepositoryName='Revenue']";
         
try{
 String result=siebelFT.currency(5, SiebCurrency)
  .getAmount();
 if (!result.equals("$.00")) {
  info("getAmount returned  " + result);
 }
 }catch(Exception exp) {}
 
try{
 String result=siebelFT.currency(7, SiebCurrency)
  .getText();
 if (!result.equals("$0.00")) {
  info("getText() returned  " + result);
 }
 }catch(Exception exp) {}
 
try{
 Boolean result=siebelFT.currency(9, SiebCurrency).isEnabled();
 if (!result) {
  warn("isEnabled returned " + result);
 }
 }catch(Exception exp) {}
 
try{
 Boolean result=siebelFT.currency(11, SiebCurrency).isOpen();
 if (result) {
  warn("isOpen returned " + result);
 }
 }catch(Exception exp) {}
 
siebelFT.currency(14, SiebCurrency).setText("999");
siebelFT.currency(16, SiebCurrency).processKey("EnterKey");
siebelFT.currency(18, SiebCurrency).openPopup();
siebelFT.currency(20, SiebCurrency).cancelPopup();

siebelFT.element

Creates a generic Siebel element.

Format

The siebelFT.element method has the following command format(s):

siebelFT.element(path);

siebelFT.element(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

the ID of a previously recorded navigation, used for comparison purposes. May be null.

Returns

a new Element.

Example

CPerforms an action on a generic Siebel element.

web.window(1376,"/web:window[@index='0' " +
   "or @title='about:blank']")
 .navigate("http://example.com/callcenter_enu/start.swe?SWECmd=AutoOn");
web.textBox(1378,"/web:window[@index='0' " +
   "or @title='Siebel Call Center']" +
  "/web:document[@index='0']" +
  "/web:form[@name='SWEEntryForm' or @index='0']" +
  "/web:input_text[@rn='_SweUserName' " +
   "and @ot='SiebWebText' and @un='_SweUserName']")
  .setText("sadmin");
{
  think(0.156);
}
web.textBox(1379,"/web:window[@index='0' " +
   "or @title='Siebel Call Center']" +
  "/web:document[@index='0']" +
  "/web:form[@name='SWEEntryForm' or @index='0']" +
  "/web:input_text[@rn='_SweUserName' " +
  "and @ot='SiebWebText' and @un='_SweUserName']")
  .pressTab();
{
  think(0.031);
}
web.textBox(1380,"/web:window[@index='0' " +
   "or @title='Siebel Call Center']" +
  "/web:document[@index='0']" +
  "/web:form[@name='SWEEntryForm' or @index='0']" +
  "/web:input_password[@rn='_SwePassword' " +
  "and @ot='SiebWebPassword' and @un='_SwePassword']")
  .setPassword(decrypt("OvCQi9wcp7lT2jehewJtOQ=="));
{
  think(1.232);
}
web.image(1381,"/web:window[@index='0' " +
   "or @title='Siebel Call Center']" +
  "/web:document[@index='0']" +
  "/web:img[@alt='Login' or @index='3' " +
   "or @src='http://example.com/callcenter_enu/images/login77_d.gif']")
  .click();
 
String path="/siebelft:cas[@ClassName='SiebApplication' " +
   "and @RepositoryName='Siebel Universal Agent']" +
  "/siebelft:cas[@ClassName='SiebMenu' " +
   "and @RepositoryName='SiebMenu']";
siebelFT.menu(path).assertAttributes("attributes",siebelFT.attributes(
 siebelFT.attribute("ClassName","SiebMenu", 
  TestOperator.StringExact), 
 siebelFT.attribute("RepositoryName", "SiebMenu",
  TestOperator.StringExact), 
 siebelFT.attribute("UIName", "Menu",
  TestOperator.StringExact), 
 siebelFT.attribute("Count", "60",
  TestOperator.StringExact)));
 
siebelFT.menu(path).assertAttribute("attribute", "UIName", "Menu", 
 TestOperator.StringExact);
 
try{
  boolean result=siebelFT.element(10, path).exists();
  if (!result) {
   warn("exists returned  " + result);
  }
}catch(Exception exp) {}
 
try{
  String result=siebelFT.element(12, path).getAttribute("RepositoryName");
  if (!result.equals("SiebMenu")) {
   warn("getClassName returned  " + result);
  }
}catch(Exception exp) {}
 
try{
  String result=siebelFT.element(14, path).getRepositoryName();
  if (!result.equals("SiebMenu")) {
   warn("getRepositoryName returned  " + result);
  }
}catch(Exception exp) {}
 
try{
  siebelFT.element(16, path).storeAttribute("var", "Count");
  if (!eval("{{var}}").equals("60")) {
   warn("Count returned  " + eval("{{var}}"));
  }
}catch(Exception exp) {}
 
siebelFT.element(18, path).waitForAttribute("Count", "60", 10);

siebelFT.exists

Checks for the existence of a Siebel control.

Format

The siebelFT.exists method has the following command format(s):

siebelFT.exists(path);

Command Parameters

path

pathname of the Siebel control.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Returns

true if the control exists, otherwise false.

Example

Checks if the specified Siebel element exists.

try{
 if(siebelFT.exists("/siebelft:cas[@ClassName='SiebApplication' " +
   "and @RepositoryName='Siebel Universal Agent']" +
  "/siebelft:cas[@ClassName='SiebScreen' " +
   "and @RepositoryName='Activities Screen']" +
  "/siebelft:cas[@ClassName='SiebThreadbar' " +
   "and @RepositoryName='SiebThreadbar']")) {
  info("element exists");
 }
 }catch(Exception exp) {}

siebelFT.list

Creates a Siebel List element.

Format

The siebelFT.list method has the following command format(s):

siebelFT.list(path);

siebelFT.list(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

the ID of a previously recorded navigation, used for comparison purposes. May be null.

Returns

a new List.

Example

Performs an action on a Siebel List element.

String pdq="/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Opportunities Screen']" +
 "/siebelft:cas[@ClassName='SiebPDQ' " +
  "and @RepositoryName='SiebPDQ']";
siebelFT.pdq(pdq).select("** All Opportunities");
think(11.13);
siebelFT.list(72,"/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Opportunities Screen']" +
 "/siebelft:cas[@ClassName='SiebView' " +
  "and @RepositoryName='Opportunity List View']" +
 "/siebelft:cas[@ClassName='SiebApplet' " +
  "and @RepositoryName='Opportunity List Applet']" +
 "/siebelft:cas[@ClassName='SiebList' " +
  "and @RepositoryName='SiebList']")
 .activateRow(1);
{
 think(0.031);
}
siebelFT.list(73,"/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Opportunities Screen']" +
 "/siebelft:cas[@ClassName='SiebView' " +
  "and @RepositoryName='Opportunity List View']" +
 "/siebelft:cas[@ClassName='SiebApplet' " +
  "and @RepositoryName='Opportunity List Applet']" +
 "/siebelft:cas[@ClassName='SiebList' " +
  "and @RepositoryName='SiebList']")
 .drillDownColumn("Name", 1);

siebelFT.menu

Creates a Siebel Menu element.

Format

The siebelFT.menu method has the following command format(s):

siebelFT.menu(path);

siebelFT.menu(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

the ID of a previously recorded navigation, used for comparison purposes. May be null.

Returns

a new Menu.

Example

Performs an action on a Siebel Menu element.

siebelFT.menu(256,"/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebMenu' " +
  "and @RepositoryName='SiebMenu']")
 .select("File\\\\File - Logout");

siebelFT.pageTabs

Creates a Siebel PageTabs element.

Format

The siebelFT.pageTabs method has the following command format(s):

siebelFT.pageTabs(path);

siebelFT.pageTabs(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

the ID of a previously recorded navigation, used for comparison purposes. May be null.

Returns

a new PageTabs.

Example

Performs an action on a Siebel PageTabs element.

siebelFT.pageTabs(41,"/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebPageTabs' " +
  "and @RepositoryName='SiebPageTabs']")
 .gotoScreen("Opportunities Screen");                    

siebelFT.pdq

Creates a Siebel PDQ element.

Format

The siebelFT.pdq method has the following command format(s):

siebelFT.pdq(path);

siebelFT.pdq(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

the ID of a previously recorded navigation, used for comparison purposes. May be null.

Returns

a new PDQ.

Example

Performs an action on a Siebel PDQ element.

String pdq="/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Opportunities Screen']" +
 "/siebelft:cas[@ClassName='SiebPDQ' " +
  "and @RepositoryName='SiebPDQ']";
siebelFT.pdq(10, pdq).select("** All Opportunities");
think(11.13);
siebelFT.list(72,"/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Opportunities Screen']" +
 "/siebelft:cas[@ClassName='SiebView' " +
  "and @RepositoryName='Opportunity List View']" +
 "/siebelft:cas[@ClassName='SiebApplet' " +
  "and @RepositoryName='Opportunity List Applet']" +
 "/siebelft:cas[@ClassName='SiebList' " +
  "and @RepositoryName='SiebList']")
 .activateRow(1);
{
 think(0.031);
}
siebelFT.list(73,"/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Opportunities Screen']" +
 "/siebelft:cas[@ClassName='SiebView' " +
  "and @RepositoryName='Opportunity List View']" +
 "/siebelft:cas[@ClassName='SiebApplet' " +
  "and @RepositoryName='Opportunity List Applet']" +
 "/siebelft:cas[@ClassName='SiebList' " +
  "and @RepositoryName='SiebList']")
 .drillDownColumn("Name", 1);

siebelFT.richText

Creates a Siebel RichText element.

Format

The siebelFT.richText method has the following command format(s):

siebelFT.richText(path);

siebelFT.richText(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

the ID of a previously recorded navigation, used for comparison purposes. May be null.

Returns

a new RichText.

Example

Performs an action on a Siebel RichText element.

String SiebRichText="/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Projects Screen (ePS)']" +
 "/siebelft:cas[@ClassName='SiebView' " +
  "and @RepositoryName='Project Private Note View']" +
 "/siebelft:cas[@ClassName='SiebApplet' " +
  "and @RepositoryName='Project Private Note Form Applet']" +
 "/siebelft:cas[@ClassName='SiebRichText' " +
  "and @RepositoryName='Note']";
siebelFT.button(249,"/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Projects Screen (ePS)']" +
 "/siebelft:cas[@ClassName='SiebView' " +
  "and @RepositoryName='Project Private Note View']" +
 "/siebelft:cas[@ClassName='SiebApplet' " +
  "and @RepositoryName='Project Private Note Form Applet']" +
 "/siebelft:cas[@ClassName='SiebButton' " +
  "and @RepositoryName='NewRecord']")
 .click();
{
 think(6.812);
}
siebelFT.richText(5, SiebRichText).setText("zopa");
try{
 String result=siebelFT.richText(7, SiebRichText).getText();
 if (!result.equals("zopa")) {
  warn("getText returned  " + result);
  }
 }catch(Exception exp) {}
 
try{
 Boolean result=siebelFT.richText(9, SiebRichText).isEnabled();
 if (!result) {
  warn("isEnabled returned  " + result);
  }
 }catch(Exception exp) {}
try{
 Boolean result=siebelFT.richText(11, SiebRichText).isRequired();
 if (result) {
  warn("isRequired returned  " + result);
  }
 }catch(Exception exp) {}           

siebelFT.screen

Creates a Siebel Screen element.

Format

The siebelFT.screen method has the following command format(s):

siebelFT.screen(path);

siebelFT.screen(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

the ID of a previously recorded navigation, used for comparison purposes. May be null.

Returns

a new Screen.

Example

Performs an action on a Siebel Screen element.

String SiebScreen="/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Accounts Screen']";
 
try{
 String result=siebelFT.screen(3, SiebScreen)
  .childPathFromRepositoryName("SiebPDQ", "SiebPDQ");
 String expected="/siebelft:cas[@ClassName='SiebApplication' " +
   "and @RepositoryName='Siebel Universal Agent']" +
  "/siebelft:cas[@ClassName='SiebScreen' " +
   "and @RepositoryName='Accounts Screen']" +
  "/siebelft:cas[@ClassName='SiebPDQ' " +
   "and @RepositoryName='SiebPDQ']";
 if (!result.equals(expected)) {
  warn("childPathFromRepositoryName returned  " + result);
 }
 }catch(Exception exp) {}
try{
 Integer result=siebelFT.screen(5, SiebScreen)
  .getClassCount("SiebPDQ");
 if (result<1) {
  warn("getClassCountreturned  " + result);
 }
 }catch(Exception exp) {}
 
try{
 String result=siebelFT.screen(7, SiebScreen)
  .getRepositoryNameByIndex("SiebPDQ", 0);
 if (!result.equals("SiebPDQ")) {
  warn("getRepositoryNameByIndex returned  " + result);
 }
 }catch(Exception exp) {}    * 

siebelFT.screenViews

Creates a Siebel ScreenViews element.

Format

The siebelFT.screenViews method has the following command format(s):

siebelFT.screenViews(path);

siebelFT.screenViews(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

the ID of a previously recorded navigation, used for comparison purposes. May be null.

Returns

a new ScreenViews.

Example

Performs an action on a Siebel ScreenViews element.

String SiebScreenView="/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Activities Screen']" +
 "/siebelft:cas[@ClassName='SiebScreenViews' " +
  "and @RepositoryName='SiebScreenViews']";
siebelFT.screenViews(5, SiebScreenView).assertCells("screenView assert",
 siebelFT.cells(siebelFT.cell(2, 1, "Attachments",
   TestOperator.StringExact)));
siebelFT.screenViews(6, SiebScreenView).verifyCells("screenView verify",
 siebelFT.cells(siebelFT.cell(2, 1, "Attachments",
   TestOperator.StringExact)));
try{
 String result=siebelFT.screenViews(7, SiebScreenView)
  .getActiveView();
 if (!result.equals("Activity Attachment View")) {
   warn("getActiveView returned  " + result);
  }
  }catch(Exception exp) {}
try{
 String result=siebelFT.screenViews(8, SiebScreenView)
  .getCell(1, 1);
 if (!result.equals("More Info")) {
   warn("getCell returned  " + result);
  }
  }catch(Exception exp) {}
try{
 Integer result=siebelFT.screenViews(9, SiebScreenView)
  .getL2Count();
 if (result <0) {
   warn("getL2Count returned  " + result);
  }
  }catch(Exception exp) {}
try{
 Integer result=siebelFT.screenViews(10, SiebScreenView)
  .getL3Count();
 if (result <1) {
   warn("getL3Count returned  " + result);
  }
  }catch(Exception exp) {}
try{
 Integer result=siebelFT.screenViews(11, SiebScreenView)
  ;.getL4Count();
 if (result <0) {
   warn("getL4Count returned  " + result);
  }
  }catch(Exception exp) {}
try{
 String result=siebelFT.screenViews(12, SiebScreenView)
  .getUIName("Activity Detail View", "L3");
 if (!result.equals("More Info")) {
   warn("getUIName returned  " + result);
  }
  }catch(Exception exp) {}

siebelFT.text

Creates a Siebel Text element.

Format

The siebelFT.text method has the following command format(s):

siebelFT.text(path);

siebelFT.text(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

the ID of a previously recorded navigation, used for comparison purposes. May be null.

Returns

a new Text.

Example

Performs an action on a Siebel Text element.

String SiebText="/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Accounts Screen']" +
 "/siebelft:cas[@ClassName='SiebView' " +
  "and @RepositoryName='Account List View']" +
 "/siebelft:cas[@ClassName='SiebApplet' " +
  "and @RepositoryName='Account Entry Applet']" +
 "/siebelft:cas[@ClassName='SiebText' " +
  "and @RepositoryName='Location']";
siebelFT.text(SiebText).setText("zopa");
siebelFT.text(SiebText).getPopupType();
try{
 String result=siebelFT.text(5, SiebText).getText();
 if (!result.equals("zopa")) {
  warn("getText returned " + result);
 }
 }catch(Exception exp) {}
 
try{
 Boolean result=siebelFT.text(6, SiebText).isEnabled();
 if (!result) {
  warn("isEnabled returned " + result);
 }
 }catch(Exception exp) {}
 
try{
 Boolean result=siebelFT.text(7, SiebText).isEncrypted();
 if (result) {
  warn("isEncrypted() returned " + result);
 }
 }catch(Exception exp) {}
 
siebelFT.text(8, SiebText).openPopup();
siebelFT.text(9, SiebText).setPassword("abc");
siebelFT.text(10, SiebText).processKey("EnterKey");

siebelFT.textArea

Creates a Siebel TextArea element.

Format

The siebelFT.textArea method has the following command format(s):

siebelFT.textArea(path);

siebelFT.textArea(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

the ID of a previously recorded navigation, used for comparison purposes. May be null.

Returns

a new TextArea.

Example

Performs an action on a Siebel TextArea element.

String SiebTextArea="/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Opportunities Screen']" +
 "/siebelft:cas[@ClassName='SiebView' " +
  "and @RepositoryName='Opportunity List View']" +
 "/siebelft:cas[@ClassName='SiebApplet' " +
  "and @RepositoryName='Opportunity Form Applet - Child']" +
 "/siebelft:cas[@ClassName='SiebTextArea' " +
  "and @RepositoryName='Description']";
siebelFT.textArea(5, SiebTextArea).setText("zopa");
try{
 String result=siebelFT.textArea(6, SiebTextArea)
  .getText();
 if (!result.equals("zopa")) {
  warn("getText returned " + result);
 }
 }catch(Exception exp) {}
 
try{
 Boolean result=siebelFT.textArea(7, SiebTextArea)
  .isEnabled();
 if (!result) {
  warn("isEnabled returned " + result);
 }
 }catch(Exception exp) {}

siebelFT.threadbar

Creates a Siebel Threadbar element.

Format

The siebelFT.threadbar method has the following command format(s):

siebelFT.threadbar(path);

siebelFT.threadbar(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

the ID of a previously recorded navigation, used for comparison purposes. May be null.

Returns

a new Threadbar.

Example

Performs an action on a Siebel Threadbar element.

String SiebThreadbar="/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Activities Screen']" +
 "/siebelft:cas[@ClassName='SiebThreadbar' " +
  "and @RepositoryName='SiebThreadbar']";
siebelFT.threadbar(2, SiebThreadbar).assertCells("assert",    
 siebelFT.cells(siebelFT.cell(1, 1,"Opportunity Detail - Activities View0",
  TestOperator.StringExact)));
siebelFT.threadbar(4, SiebThreadbar).verifyCells("verify",    
 siebelFT.cells(siebelFT.cell(1, 1,"Opportunity Detail - Activities View0",
  TestOperator.StringExact)));
try{
 String result=siebelFT.threadbar(5, SiebThreadbar)
  .getActiveThreadItem();
 if (!result.equals("Opportunity Detail - Activities View0")) {
  warn("getActiveThreadItem returned  " + result);
 }
 }catch(Exception exp) {}
try{
 String result=siebelFT.threadbar(6, SiebThreadbar)
  .getCell(1, 1);
 if (!result.equals("Opportunity Detail - Activities View0")) {
  warn("getCell returned  " + result);
 }        
 }catch(Exception exp) {}
try{
 Integer result=siebelFT.threadbar(7, SiebThreadbar)
  .getCount();
 if (result <1) {
  warn("getCount returned  " + result);
 }
 }catch(Exception exp) {}
try{
 String result=siebelFT.threadbar(8, SiebThreadbar)
  .getThreadItemByIndex(0);
 if (!result.equals("Opportunity Detail - Activities View0")) {
  warn("getThreadItemByIndex returned  " + result);
 }
 }catch(Exception exp) {}
try{
 String result=siebelFT.threadbar(9, SiebThreadbar)
  .getThreadItems();
 if (!result.equals("Opportunity Detail - Activities View0")) {
  warn("getThreadItems returned  " + result);
 }
 }catch(Exception exp) {}
try{
 Boolean result=siebelFT.threadbar(10, SiebThreadbar)
  .isExists("Opportunity Detail - Activities View0");
 if (!result) {
  warn("isExists returned  " + result);
 }
 }catch(Exception exp) {}
 
siebelFT.threadbar(11, SiebThreadbar).storeCell("var", 1, 1);
if (!eval("{{var}}").equals("Opportunity Detail - Activities View0")){
 warn("storeCell returned  " + eval("{{var}}"));
}        

siebelFT.toolbar

Creates a Siebel Toolbar element.

Format

The siebelFT.toolbar method has the following command format(s):

siebelFT.toolbar(path);

siebelFT.toolbar(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

the ID of a previously recorded navigation, used for comparison purposes. May be null.

Returns

a new Toolbar.

Example

Performs an action on a Siebel Toolbar element.

siebelFT.toolbar(185,"/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebToolbar' " +
  "and @RepositoryName='HIMain']")
 .click("SiteMap");

siebelFT.tree

Creates a Siebel Tree element.

Format

The siebelFT.tree method has the following command format(s):

siebelFT.tree(path);

siebelFT.tree(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

the ID of a previously recorded navigation, used for comparison purposes. May be null.

Returns

a new Tree.

Example

Performs an action on a Siebel Tree element.

String SiebTree="/siebelft:cas[@ClassName='SiebApplication' " +
  "and @RepositoryName='Siebel Universal Agent']" +
 "/siebelft:cas[@ClassName='SiebScreen' " +
  "and @RepositoryName='Opportunities Screen']" +
 "/siebelft:cas[@ClassName='SiebView' " +
  "and @RepositoryName='Opportunity Explorer View']" +
 "/siebelft:cas[@ClassName='SiebApplet' " +
  "and @RepositoryName='Opportunity Tree Applet']" +
 "/siebelft:cas[@ClassName='SiebTree' " +
  "and @RepositoryName='SiebTree']";
siebelFT.tree(4, SiebTree).expand("1");
siebelFT.tree(5, SiebTree).select("1.2");
try{
 String result=siebelFT.tree(6, SiebTree)
  .getActiveTreeItem();
 if ((result.length()<1)) {
  warn("getActiveTreeItem returned " + result);
 }
 }catch(Exception exp) {}
try{
 String result=siebelFT.tree(7, SiebTree)
  .getTreeItemName("1.2");
 if (result.length()<1) {
  warn("getTreeItemName returned " + result);
 }
 }catch(Exception exp) {}
try{
 Integer result=siebelFT.tree(8, SiebTree)
  .getChildCount("1");
 if (result <1) {
  warn("getChildCount returned " + result);
 }
 }catch(Exception exp) {}
try{
 Boolean result=siebelFT.tree(9, SiebTree)
 .isExpanded("1");
 if (!result) {
  warn("isExpanded returned " + result);
 }
 }catch(Exception exp) {}
 
siebelFT.tree(10, SiebTree).nextPage();
siebelFT.tree(11, SiebTree).previousPage();
siebelFT.tree(12, SiebTree).collapse("1");