Click or drag to resize

ElementLocatorFormat Method

Framework to automate tests using Selenium WebDriver
Formats the generic element locator definition and create the instance.

Namespace: Ocaramba.Types
Assembly: OcarambaLite (in OcarambaLite.dll) Version: 4.2.8+a9b8573c8e7a79d20d13aab3058972497cab0398
Syntax
C#
public ElementLocator Format(
	params Object[] parameters
)
Request Example

Parameters

parameters  Object
The parameters.

Return Value

ElementLocator
New element locator with value changed by injected parameters.
Example
How we can replace parts of defined locator: private readonly ElementLocator menuLink = new ElementLocator(Locator.XPath, "//*[@title='{0}' and @ms.title='{1}']"); var element = this.Driver.GetElement(this.menuLink.Format("info","news"));
See Also