Skip to content
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

INPUT example, strange result on google #480

Open
PierreBrisorgueil opened this issue Apr 23, 2020 · 0 comments
Open

INPUT example, strange result on google #480

PierreBrisorgueil opened this issue Apr 23, 2020 · 0 comments
Labels

Comments

@PierreBrisorgueil
Copy link
Contributor

Hum, during my research I came across a strange issue in an example: https://github.com/MontFerret/ferret/blob/master/examples/input.fql

FILTER TRIM(result.attributes.class) == 'g' => line 20:47 extraneous input '<EOF>' expecting {'FOR', 'RETURN', 'FILTER', 'SORT', 'LIMIT', 'LET', 'COLLECT', Identifier, NamespaceSegment}

But that's not the problem if you remove the end and do something like this :

LET google = DOCUMENT("https://www.google.com/", {
    driver: "cdp",
    userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87 Safari/537.36"
})
HOVER(google, 'input[name="q"]')
WAIT(RAND(100))
INPUT(google, 'input[name="q"]', @criteria, 30)
WAIT(RAND(100))
WAIT_ELEMENT(google, '.UUbT9')
WAIT(3000)
CLICK(google, 'input[name="btnK"]')
WAIT_NAVIGATION(google)
WAIT(5000)
RETURN ""

CLICK(google, 'input[name="btnK"]')

will not click on the button but X pixel on the top and launch the search request on the last item of suggestions. I'm not sure if it's about ferret or google, but it's strange.

@ziflex ziflex added area/drivers/cdp Cdp driver status/review-needed type/bug Something isn't working labels Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants