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

Migration guide #66

Open
KroArtem opened this issue Mar 9, 2019 · 3 comments
Open

Migration guide #66

KroArtem opened this issue Mar 9, 2019 · 3 comments

Comments

@KroArtem
Copy link
Contributor

KroArtem commented Mar 9, 2019

It'd be very handy to have a migration guide from HtmlElements2. Maybe in a form of a small wiki-page or as a part of readme.

@KroArtem
Copy link
Contributor Author

Some things I didn't manage (yet) to find.

  1. How to write your own extensions (htmlelements way vs. atlas way). Do I need to implement MethodExtension?
  2. ElementsCollection doesn't seem to have convert method that was quite useful.

@artsok
Copy link
Collaborator

artsok commented Mar 16, 2019

First point,

  1. Yes, you need to implement MethodExtension

изображение

  1. How we can to override behavior of a click

изображение

  1. Set our extension to Atlas

изображение

Secont point,
You can try instead of 'convert' this way collection.stream().map(it -> it...).

@KroArtem
Copy link
Contributor Author

JFYI, first version of guide was here: https://github.com/KroArtem/atlas/wiki/Migration-guide

Right now it's waiting for other tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants