I am trying to extract emails from a webpage using Selenium for future testing. I need to compare these emails with ones displayed in a selection later on.
I attempted to read the emails within a while-loop but struggled with handling arrays in IDE. Unfortunately, my current approach is not working:
store | 0 |i
store | 17 | line
storeElementPresent | //html/body/div/div[4]/*/div[3]/table/tbody/tr/td/table/tbod/tr[${line}]/td[3]/a |adresseDa
while | ${adresseDa}!='0'
storeEval | javascript{new Array()} | array
storeText | //html/body/div/div[4]/*/div[3]/table/tbody/tr/td/table/tbody/tr[${line}]/td[3]/a | mail
storeEval | storedVars.array[storedVars.i]=storedVars.mail
echo | ${array}
storeEval | storedVars.line++
storeEval | storedVars.i++
storeElementPresent | //html/body/div/div[4]/*/div[3]/table/tbody/tr/td/table/tbod/tr[${line}]/td[3]/a | adresseDa
endWhile
The echo | ${array}
output is null
, indicating that something is wrong with my method.
I need guidance on how to properly store the emails in an array and access them later. Any suggestions would be greatly appreciated!
Thank you!