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

feat: Add selected element in Find result #80

Closed
Turom opened this issue Aug 18, 2017 · 2 comments
Closed

feat: Add selected element in Find result #80

Turom opened this issue Aug 18, 2017 · 2 comments
Labels

Comments

@Turom
Copy link

Turom commented Aug 18, 2017

Add the Agouti selected element in the find result, for example in a result.findElement property so the element content or attributes may be tested in Venom assertions.

https://github.com/runabove/venom/blob/0ae13f092534bc1f03c14b576846ff4ff5f030d5/executors/web/web.go#L136

Looks like the Agouti Selection obtained can return elements with
https://github.com/sclevine/agouti/blob/dfc6680bb9fcb3f3d3b6f506a1d1e77fbc9c9613/selection.go#L53

Some element properties maybe exposed in result.findElement
http://godoc.org/github.com/sclevine/agouti/api#Element

@fehrnah
Copy link
Contributor

fehrnah commented Jan 23, 2023

Looking at the code, it seems that this exists :
In the executor result:

Text string `json:"text,omitempty" yaml:"text,omitempty"`

In the find action:
r.Text = text

But it is not documented anywhere (and not tested either)

@yesnault
Copy link
Member

yesnault commented Jun 1, 2023

web executor was refactored on 1.2.0-beta.1 version. Feel free to reopen if needed.

@yesnault yesnault closed this as completed Jun 1, 2023
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

3 participants