ChromeFindElements


 

ChromeFindElements>session_id,strategy,value,elements_array

 

Finds matching elements and returns an array of element IDs. Requires a session_id created by ChromeStart.


 

strategy can be one of:

id

name

class name

css selector

link text

partial link text

tag name

xpath

value takes the value of the item you are searching for.


 

E.g. to match en element with id=srchButton set strategy to id and value to srchButton, or using xpath set strategy to xpath and a valid xpath string in value.


 

See also: Chrome Functions

 

Example

 

Let>CHROMEDRIVER_EXE=c:\chromedriver.exe


 

//start a Chrome session

ChromeStart>session_id


 

//navigate to google.com

ChromeNavigate>session_id,url,https://www.google.com/


 

//find the input (name=q)

ChromeFindElements>session_id,name,q,elements


 

//enter something into it

ChromeSetElementValue>session_id,elements_1,macro scheduler