Macro Scheduler 15

EdgeGetElementData

EdgeGetElementData>session_id,element_id,item_type,returnValue

 

Retrieves data from the given element. Requires a session_id created by EdgeStart and an element_id returned by EdgeFindElements.


item_type can be one of:

  • text - the inner text of the element
  • value - the value of the element if it has one (e.g. for inputs)
  • attribute/attribute_name - where attribute_name is a valid html attribute

Returns the value in the returnValue variable


See also: Edge Functions

 

Example

 

Let>EDGEDRIVER_EXE=c:\msedgedriver.exe

//start a Edge session
EdgeStart>session_id

//navigate to google.com
EdgeNavigate>session_id,url,https://www.google.com/


EdgeFindElements>session_id,id,main,elements
EdgeGetElementData>session_id,elements_1,text,theText

EdgeGetElementData>session_id,elements_1,attribute/outerHTML,theHtml