| 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: 1.0.0+d8e789f8644d1a9b63485ad7914acf4f489f3ef9
Syntax 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