I have an HTML table with data like
| Username | is admin | Actions |
|---|---|---|
| New User | ✓ | Make Admin |
| Old User | Make Admin |
After clicking "Make Admin", how do I wait for the check mark to show up?
I figured out how to look for the checkmark:
const checkmarkText = await page.$eval(`text/${new_user}`, e=>{
return e.nextSibling.innerHTML;
});
But I'm not sure how to do a .waitForSelector(???) waiting for this checkmark.
For what it's worth, the HTML is very simple like this:
<tr>
<td>
New User
</td>
<td>
✓
</td>
<td>
...
</td>
</tr>