java - selenium sendkeys() to write email into outlook -


how can insert table outlook based on data fetched database using selenium?

i using send keys() write data outlook need data in form of table or grid view column names.

i able fetch data , send outlook send key(data), tabular form requirement.

you can try outlookex udf.

prepare body of mail html:

local $array[][] = [[0,1,2,3],[0,1,2,3]]  local $content = ""  $i=0 ubound($array)-1     $content &= "<tr>"     $j = 0 ubound($array,2)-1         $content &= "<td>" & $array[$i][$j] & "</td>"     next     $content &= "</tr>" next  $html = "<table border=1 cellspacing=0 cellpadding=0>" & $content & "</table>" 

and use _ol_wrapper_sendmail fuction:

#include <outlookex.au3> $ool = _ol_open() _ol_wrapper_sendmail($ool, "john doe", "", "", $html, "", $olformathtml, $olimportancehigh) _ol_close($ool) 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -