Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, windows and java based applications. Get your 30 day free trial.

Discuss your Sahi Pro usage patterns, best practices, problems and solutions. Help others solve their problems and seek help from the community when needed. If you need specific support on your application, please email support @ sahipro.com

How to get value from HTML string

<table style="font-family:Calibri;" ><tr><td>Hi,</td></tr><tr><td> </td></tr><tr><td>The following Visa Request has been assigned to you for approval: </td></tr><tr><td><table style="border:solid 1px #000000;font-family:Calibri;font-size:14px;" width="75%"><tr><td align="left"style="background-color:#17365D;color:#FFFFFF;border-bottom:solid 1px #000000;font-weight:bold;" width="120px">Visa Category</td><td style="border-right:solid 1px #000000;border-bottom:solid 1px #000000;" align="left">L-1A</td></tr><tr><td align="left"style="background-color:#17365D;color:#FFFFFF;border-bottom:solid 1px #000000;font-weight:bold;">Visa Request Id</td><td style="border-right:solid 1px #000000;border-bottom:solid 1px #000000;" align="left">IM0211</td></tr><tr><td align="left"style="background-color:#17365D;color:#FFFFFF;border-bottom:solid 1px #000000;font-weight:bold;">Employee Name</td><td style="border-right:solid 1px #000000;border-bottom:solid 1px #000000;" align="left">Malini Sah (MaliniS)</td></tr><tr><td align="left"style="background-color:#17365D;color:#FFFFFF;border-bottom:solid 1px #000000;font-weight:bold;">Requester</td><td style="border-right:solid 1px #000000;border-bottom:solid 1px #000000;" align="left">Anisha Nair (AnishaN)</td></tr><tr><td align="left"style="background-color:#17365D;color:#FFFFFF;border-bottom:solid 1px #000000;font-weight:bold;">Stage</td><td style="border-right:solid 1px #000000;border-bottom:solid 1px #000000;" align="left">OSG</td></tr><tr><td align="left"style="background-color:#17365D;color:#FFFFFF;border-bottom:solid 1px #000000;font-weight:bold;">Bucket</td><td style="border-right:solid 1px #000000;border-bottom:solid 1px #000000;" align="left">L3 - Awaiting Assessment: OSG</td></tr><tr><td align="left"style="background-color:#17365D;color:#FFFFFF;border-bottom:solid 1px #000000;font-weight:bold;">Action Owner</td><td style="border-right:solid 1px #000000;border-bottom:solid 1px #000000;" align="left">Zohaib Sayyed (ZohaibS)</td></tr></table></td></tr><tr><td> </td></tr><tr><td>Kindly navigate to <b>PGS > Mobility > Visa Process</b> to check the request.</td></tr><tr><td> </td></tr><tr><td>Regards,</td></tr><tr><td>Immigration Team </td></tr></table>

Answers

  • _call(document.body.innerHTML= '<Need to pass HTML String>');

    I got help from support team.
Sign In or Register to comment.