rickypc / selenium-page-object-generator

A nimble and flexible Selenium Page Object Model generator to improve agile testing process velocity.
https://chrome.google.com/webstore/detail/epgmnmcjdhapiojbohkkemlfkegmbebb
GNU Affero General Public License v3.0
121 stars 65 forks source link

Ability to exclude some WebElements? #2

Closed William-Michael-Russell closed 9 years ago

William-Michael-Russell commented 9 years ago

Hello,

This project is awesome, thank you. One problem I'm having is that my webSite has a scrollable text field for checkbox's, they are all prefixed with cat_someLongId

When I generate this page, it's generating around 7,000 elements that I dont need... and impossible to clean up.

Is there any way i can exclude based on some text or prefix_string?

Thanks

rickypc commented 9 years ago

Thanks, William.

You can modify the options by going to Options > Nodes > Selector and adjust input to input:not([id^="cat_"]) as screenshot below, that would ignore any input tag that has cat_ id prefix. Please don't forget to save it. You can always reset to original settings later.

ignore-prefix

For more information about attribute selector, it can be found in this Mozilla documentation