Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DeLaphante committed Dec 12, 2024
1 parent ee77f72 commit 46d57ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DemoAutomation/PageObjects/CommonPages/Navigation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void ClickAlert()

public void NavigateToMenuOption(string option)
{
if (CloseMessageDialog_button.IsDisplayed())
if (CloseMessageDialog_button.ElementExists() && CloseMessageDialog_button.IsDisplayed())
CloseMessageDialog_button.Click();

switch (option.ToLower())
Expand Down

0 comments on commit 46d57ac

Please sign in to comment.