-
Notifications
You must be signed in to change notification settings - Fork 96
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
Help need regarding "HTTP method not allowed" exception on certain elements #224
Comments
@abhi18av thanks for your report, looks like the issue is the following. In your exception, there is a URL like this:
Pay attention to the
also returns nil. I may guess that there is something wrong with the data structure you're expecting. |
What I can propose here is, you'd better to check every element you receive for |
@Uunnamed I think we can add some sort of :pre checks to all query functions (query, children, etc) to ensure the element parameter is not nil. Like this:
|
Yeah, I ended up doing the same actually and the problem was resolved :) I think, the |
In the latest master, we added some :pre statements to ensure the element is not nil. It will be available in the upcoming 0.3.9 release. |
That sounds great thanks! |
Hi @igrishaev,
First off, thanks for this wonderful package - I've come to really enjoy using
clojure
forbrowser automation
!During a recent project, I noticed some strange behavior in
etaoin
.I have a collection of elements called
page3
, defined like soI've defined a wrapper function
get-problem-url
like soI noticed that at the following element, which works fine for
get-element-text-el
as show below... something unexpected happens when I try to use the
get-problem-url
function on this specific element like soAfter trying to debug and check using other functions in the library for an element, I still can't figure out why exactly this exception is raised at this specific element.
Could you please help me out a bit?
The text was updated successfully, but these errors were encountered: