  | ElementLocatorFormat Method | 
Framework to automate tests using Selenium WebDriver
            Formats the generic element locator definition and create the instance.
            
Namespace: Ocaramba.TypesAssembly: OcarambaLite (in OcarambaLite.dll) Version: 4.2.4
Syntaxpublic ElementLocator Format(
	params Object[] parameters
)
 Request Example
		Parameters
- parameters  Object
 - The parameters.
 
Return Value
ElementLocator
            New element locator with value changed by injected parameters.
            
ExampleHow 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