One of my elements changes its status in text form based on a context menu that is associated with it.
Here is the particular element:
td id="A" name="status"> StatusStart </td>
Under certain circumstances, this can transform into
td id="A" name="status"> StatusDone </td>
I am looking to delay execution until the text change occurs, using waitForCondition method.
I have attempted the following so far:
selenium.waitForCondition("selenium.isElementPresent(\"//td[@name='status' and text()='StatusDone']\");", "10000");
However, this approach does not work as the text is not included within the td element.
In JavaScript, I have come across something like:
function myfunc() {
window.getGlobal().addSelectGroup('status'); window.getGlobal().addSelectItem('status','StatusStart');