Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use clickIfClickable
  • Loading branch information
Gerardo committed May 27, 2022
commit 1edaae0457d6e1a4452b493bf6c22e496f7b87f7
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,8 @@ const tapPasteAboveElement = async ( driver, element ) => {
action.release();
await action.perform();
} else {
const pasteButton = driver.elementByXPath(
'//XCUIElementTypeMenuItem[@name="Paste"]'
);
await pasteButton.click();
const pasteButtonLocator = '//XCUIElementTypeMenuItem[@name="Paste"]';
await clickIfClickable( driver, pasteButtonLocator );
await driver.sleep( 3000 ); // Wait for paste notification to disappear.
}
};
Expand Down