You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WebElement seems to be clicked from Seleniums point of view.
-- No Error is thrown
-- On screenshots the button / link is highlighted (it seems to be clicked)
The Browser does not recognize the click
-- The Actions the click should perform does not get performed
The failure occurs from time to time
-- In some cases it occurs on Jenkins but not locally
-- In some cases it occurs only every hundredth time
Workaround:
Using the JavascriptExecutor to click on the element seems to solve the problem in all cases so far: ((JavascriptExecutor) driver).executeScript("arguments[0].click();", button);
The text was updated successfully, but these errors were encountered:
- Clicking on the minusButton in deleteMetadata() method on the
EditItemPage is not working, when running the tests on jenkins
- Solution I: Use JavascriptExecutor.executeScript (instead of the
normally used WebElement.click()) to click on the element
- Readded all Statement-tests to the testng_edmond_firefox.xml to
execute them on Jenkins
- Using the already added JavascriptExecutor.executeScript Solution I
I tried the solution to click using JS but that does not work either. Looks like this is not a problem of selenium but with the browser. It does not finish JS event/function binding with objects. In such case even if you try to click manually, it won't work (though, clicking at a precise moment is very hard for human).
helkv
changed the title
Handle: Seleniums click() method not working sometimes
Selenium/WebDriver Issue: Seleniums click() method not working sometimes
Feb 6, 2019
In the Selenium tests the clicking on an element, using Seleniums WebElement.click() method, is sometimes not working.
It seems to be a general Selenium Problem, see: SeleniumHQ/selenium#4075
Characteristics:
-- No Error is thrown
-- On screenshots the button / link is highlighted (it seems to be clicked)
-- The Actions the click should perform does not get performed
-- In some cases it occurs on Jenkins but not locally
-- In some cases it occurs only every hundredth time
Workaround:
((JavascriptExecutor) driver).executeScript("arguments[0].click();", button);
The text was updated successfully, but these errors were encountered: