Skip to content

Conversation

@aquality-automation
Copy link
Collaborator

No description provided.

d.bogatko added 10 commits August 8, 2019 22:43
changed IElementStateProvider interface: added methods for waitings with default condition timeouts excluded ability to call state methods directly from elements, now users have to use state() method
refactored elements' states added isClickable
…ity-selenium-java # Conflicts: #	src/main/java/aquality/selenium/elements/DesiredState.java #	src/main/java/aquality/selenium/elements/Element.java #	src/main/java/aquality/selenium/elements/ElementFinder.java #	src/main/java/aquality/selenium/elements/ElementStateProvider.java #	src/main/java/aquality/selenium/elements/interfaces/IElement.java #	src/main/java/aquality/selenium/waitings/ConditionalWait.java #	src/test/java/tests/integration/ElementStateTests.java #	src/test/java/tests/usecases/ElementExistNotDisplayedTest.java
public Object executeScript(final String script, Object... arguments) {
Object result = getDriver().executeScript(script, arguments);
Object result = executeJavaScript(() -> getDriver().executeScript(script, arguments));
return result instanceof Boolean ? Boolean.parseBoolean(result.toString()) : result;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you still need this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

*/
public Object executeAsyncScript(final String script, Object... arguments) {
Object result = executeJavaScript(() -> getDriver().executeAsyncScript(script, arguments));
return result instanceof Boolean ? Boolean.parseBoolean(result.toString()) : result;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you still need this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@aquality-automation aquality-automation merged commit e85d2c5 into master Aug 22, 2019
@DmitryBogatko DmitryBogatko deleted the add-async-javascript-in-browser-#26 branch August 27, 2019 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants