Skip to content

Commit

Permalink
waitForElement
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelJacob21012 committed Jul 17, 2023
1 parent d0cbe06 commit 9bfb699
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ const testConfig = require("../../../config");
module.exports = async function (comment, updatedComment) {
const I = this;

await I.retry(3).click(`//p[contains(text(), '${comment}')]`);
const commentElement = `//p[contains(text(), '${comment}')]`;
await I.waitForElement(commentElement);
await I.click(commentElement);
await I.waitForElement(commonConfig.editButton);
await I.click(commonConfig.editButton);
await I.waitForElement(commonConfig.clearFiledXp);
Expand Down

0 comments on commit 9bfb699

Please sign in to comment.