WebAccessibility Object

Applies to TestComplete 15.20, last modified on January 19, 2022

Description

The WebAccessibility object provides a scripting interface to the Web Accessibility elements of the Stores | Web Testing collection of your TestComplete project. Using this object you can perform various verification operations over web pages.

To obtain the WebAccessibility object in scripts, use properties of the WebTesting object.

Requirements

The WebAccessibility object is only available if the Web Checkpoints plugin is installed in TestComplete.

Members

Example

The following code verifies the web page stored as the Web Accessibility project element.

JavaScript, JScript

function WebAccessibilityCheck()
{

  var WebObject;

  // Obtains the WebAccessibility object
  WebObject = WebTesting.WebAccessibility1;

  // Checks the WebAccessibility object
  WebObject.Check();

}

Python

def WebAccessibilityCheck():
  # Obtains the WebAccessibility object
  WebObject = WebTesting.WebAccessibility1
  # Checks the WebAccessibility object 
  WebObject.Check()

VBScript

Sub WebAccessibilityCheck

  Dim WebObject

  ' Obtains the WebAccessibility object
  Set WebObject = WebTesting.WebAccessibility1

  ' Checks the WebAccessibility object
  Call WebObject.Check

End Sub

DelphiScript

procedure WebAccessibilityCheck();
var WebObject;

begin

  // Obtains the WebAccessibility object
  WebObject := WebTesting.WebAccessibility1;

  // Checks the WebAccessibility object
  WebObject.Check;

end;

C++Script, C#Script

function WebAccessibilityCheck()
{

  var WebObject;

  // Obtains the WebAccessibility object
  WebObject = WebTesting["WebAccessibility1"];

  // Checks the WebAccessibility object
  WebObject["Check"]();

}

See Also

About Web Accessibility Checkpoints
WebTesting Object

Highlight search results