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
IllegalArgumentException: object is not an instance of declaring class #491
Comments
@robxu9 let me test it on the newest versions of Selenium and FluentLenium and I'll check is it still a case. |
I've retested it and seems to working fine @robxu9 |
Looks like there is still an issue indeed. Getting the same exception for env:
|
@dominik1776 Having the same issue here. My workaround is to call |
@ouchxp @dominik1776 would you be able to provide the code which causing the issue? |
I've got the description from @TomaszSzyborski it is not important is the element defined by
|
Very interesting is a fact the test is passing for this part of code:
|
Ok, looks like this code won't work: package org.fluentlenium.examples.quickstart;
import org.fluentlenium.adapter.junit.FluentTest;
import org.fluentlenium.core.hook.wait.Wait;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
@Wait
public class DuckDuckGoTest extends FluentTest {
@Test
public void titleOfDuckDuckGoShouldContainSearchQueryName() {
goTo("https://boardgamegeek.com/");
el(".submenutabs .fl").mouse().moveToElement();
}
} this is working well package org.fluentlenium.examples.quickstart;
import org.fluentlenium.adapter.junit.FluentTest;
import org.fluentlenium.core.hook.wait.Wait;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class DuckDuckGoTest extends FluentTest {
@Test
public void titleOfDuckDuckGoShouldContainSearchQueryName() {
goTo("https://boardgamegeek.com/");
el(".submenutabs .fl").mouse().moveToElement();
}
} |
This issue is related to #595. |
Issue reproduced and added to test
Issue resolved, code merged to develop |
Trying to use either
keyboard()
ormouse()
on an element results in the following stacktrace:...followed by wherever I called .mouse() or .keyboard() (or anything that uses it, like .doubleClick()).
It's causing me to be unable to double-click items.
I'm using Fluentlenium 3.1.1 with Chrome 57 and Selenium 3.0.1.
The text was updated successfully, but these errors were encountered: