New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selenide swallows exception in some cases #401

Closed
asolntsev opened this Issue Sep 19, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@asolntsev
Member

asolntsev commented Sep 19, 2016

For example, if exception is thrown from constructor of class Commands, Selenide will swallow it, and report just ElementShouldBe(visible) exception (or something similar).

java.lang.NoClassDefFoundError: org/apache/http/ssl/TrustStrategy
    at com.codeborne.selenide.commands.DownloadFile.<init>(DownloadFile.java:21)
    at com.codeborne.selenide.commands.Commands.addFileCommands(Commands.java:106)
    at com.codeborne.selenide.commands.Commands.resetDefaults(Commands.java:32)
    at com.codeborne.selenide.commands.Commands.<init>(Commands.java:17)
    at com.codeborne.selenide.commands.Commands.<clinit>(Commands.java:12)
       ...
Caused by: java.lang.ClassNotFoundException: org.apache.http.ssl.TrustStrategy
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 33 more

asolntsev added a commit that referenced this issue Sep 19, 2016

#401 simplify code
it's easier to just put "synchronized" to method than using "synchronize(this)" blocks

@asolntsev asolntsev added this to the 3.10 milestone Sep 19, 2016

@asolntsev

This comment has been minimized.

Show comment
Hide comment
@asolntsev

asolntsev Sep 19, 2016

Member

Fixed in Selenide 3.10

Member

asolntsev commented Sep 19, 2016

Fixed in Selenide 3.10

@asolntsev asolntsev closed this Sep 19, 2016

BorisOsipov added a commit to BorisOsipov/selenide that referenced this issue Nov 23, 2016

#401 simplify code
it's easier to just put "synchronized" to method than using "synchronize(this)" blocks

BorisOsipov added a commit to BorisOsipov/selenide that referenced this issue Nov 23, 2016

BorisOsipov added a commit to BorisOsipov/selenide that referenced this issue Nov 23, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment