LuaClientSession Methods
A LuaClientSession
object provides methods for interacting with a web page that is being processed by the Web Connector. For more information, see Scripted Processing.
If you have a LuaClientSession
object called session
you can call its methods using the ':
' operator. For example:
session:waitForQuiet(250, 10000)
Method | Description |
---|---|
attributeValue | Returns the value of an attribute on an element that matches a CSS selector. |
clickElement | Clicks an element on a web page. |
countElements | Returns the number of elements on a web page that match a CSS selector. |
elementText | Returns the inner text of an element on a web page. |
executeJavascript | Runs JavaScript on a web page. |
fillFormInput | Enters a value into an HTML form. |
snapshotPage | Takes a snapshot of a web page for indexing. |
waitForQuiet | Forces the connector to wait until there has been a specified amount of inactivity. |