-
Notifications
You must be signed in to change notification settings - Fork 43
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: To search for element by tag, use By.tag()
instead of tag
as CSS selector.
#303
Comments
This failure only happened for me on Mac 10.14 Safari, Windows 10 Firefox |
Thanks for raising this issue. I addressed it in #304. However, it will only work for simple CSS selectors, not for complex ones... |
Did this made it into 1.5.0 or 1.5.1? Still seeing this issue on 1.5.1. |
We proposed a fix with the PR mentioned above. If this does not fix your problem, I kindly ask you to describe your setup. Apparently you are trying to find an element by a css selector. However, we currently support only basic selectors, starting with For now, I would suggest that you convert your css selector into a xpath selector or use a different |
Or could you just give the complete |
... to properly answer your question: The fix (#304) made it into the release. Therefore if it still occurs, we need to refine that by better understanding your concrete problem. |
This only occurs when using the AutocheckingRecheckDriver. Basically this is the code at fault:
The return line leads to the following stack trace:
|
Hey, thanks for providing more input. Sorry for still not understanding ... where is that |
This is part of my platform code. Seems that using a WebElement using Selenium exclusive methods in something like this:
Triggers the error when AutocheckingRecheckDriver takes over. The WebElements are triggering the stack trace above defined like this:
|
FYI this showed up during the monitoring phase of the tests implemented using the tool and it's currently blocking any progress towards a decision in using the tool as part of our tests. |
We are working on a workaround in 1.6.0, so that no exception will be thrown and your test will continue. We will try—however, I cannot promise—to have a solution for the next release that makes your element unbreakable. So to say, the exception should not be thrown with the next release. In the meantime you may use another |
I understand but it is a strict requirement to use data-id tag.
…On Thu, Oct 24, 2019, 1:10 PM Bastian Diehl ***@***.***> wrote:
We are working on a workaround in 1.6.0, so that *no* exception will be
thrown and your test will continue. We will try—however, I cannot
promise—to have a solution for the next release that makes your element
unbreakable. So to say, the exception should not be thrown with the next
release.
In the meantime you may use another By like By.id that is currently
supported, if your element allows so.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#303?email_source=notifications&email_token=AAVP2P2C5HM5YZNVU7ATHQLQQHQI3A5CNFSM4IIKHIMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECF55LA#issuecomment-546037420>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVP2PYGBZTZMY2OVGU2OXLQQHQI3ANCNFSM4IIKHIMA>
.
|
We partially implemented this in recheck-web-1.6.0 for which we have a new release available. If you find any issues regarding this problem, please reopen this ticket and post the exception and/or log here. Please us the following versions:
Edit: Updated to most up to date releases. |
By "partially implemented", diba1013 meant that it should work for you case specifically, and for most cases that use CSS selectors ... but not for each edge-case of possible CSS selectors... Please report any remaining problems on that. Thanks |
Haven't had a chance to try it. Was not a drop in replacement as some classes were missing. Is there a recheck-web beta with this changes? |
We released a full release 1.6.0 already which should be on maven central by now. However, it is still not visible in maven repository. Sadly, we have no influence on when the artifact is available, as we have no open release in sonatype. Could you describe what classes are missing? If those are essential classes (like |
This morning seems it was resolving fine. Still need to do some more tests but at least seems to be resolve now. |
Looks like this needs to be updated to use By.tag() instead.
The text was updated successfully, but these errors were encountered: