It's a standard confimation dialog which firefox popups up.
On IDE in table tab if I specify the target as
Are you sure you want to navigate away from this page?\nYour changes are not saved.\nPress OK to continue, or Cancel to stay on the current page.
In source tab it converts it to
<td>Are you sure you want to navigate away from this page?<br />Your changes are not saved.<br />Press OK to continue, or Cancel to stay on the current page.</td>
////////////////////////
If in source I specify as
<td>Are you sure you want to navigate away from this page?\nYour changes are not saved.\nPress OK to continue, or Cancel to stay on the current page.</td>
It will read the text as
[info] Executing: |waitForConfirmation | Are you sure you want to navigate away from this page?\nYour changes are not saved.\nPress OK to continue, or Cancel to stay on the current page. | |
////////////
In first case it will correctly read it as
[info] Executing: |waitForConfirmation | Are you sure you want to navigate away from this page? Your changes are not saved. Press OK to continue, or Cancel to stay on the current page. | |
Since the confirmation dialog shows a line space between the two lines. I also tried with
<td>Are you sure you want to navigate away from this page?*<br />Y<br />*our changes are not saved.*<br /><br />*Press OK to continue, or Cancel to stay on the current page.</td>
But it does not work.
If I write it as
<td>Are you sure you want to navigate away from this page?\n\nYour changes are not saved.\n\nPress OK to continue, or Cancel to stay on the current page.</td>
it will read the string as
[info] Executing: |waitForConfirmation | Are you sure you want to navigate away from this page?\n\nYour changes are not saved.\n\nPress OK to continue, or Cancel to stay on the current page. | |