Thursday, 12 September 2013

Webdriver throws Nosuchemelent exception for modal dialog(which is overlay )

Webdriver throws Nosuchemelent exception for modal dialog(which is overlay )

I have modal dialog overlayed. and unable to click or find elements on the
dialog popup.
I have this code below to find clipAllElement.
clipAllButton = getWait().until(
ExpectedConditions.visibilityOf(clipAllButton));
clipAllButton.click();
If I execute the below javascript it works fine.
/*String str = "jQuery('.mod-featuredtoday-flyout .ft
.cta-button').trigger('click')";
((JavascriptExecutor)getDriver()).executeScript(str);*/
but selenium throws nosuchelement exception
I am using FF 21 and Selenium 2.33
did someone see similar issue and knows any workaround

No comments:

Post a Comment