Create PageObject Element based on parameters
Sometimes we have elements that have very same logic but different parameters describes them so its impossible to get them directly from Page Object. It would be nice to have additional parameter in getElement method in Page class.
$params = array('id' => 'element_id');
PageObject\Page::getElement($name, $params);
Page class already accepts parameters as the last argument. How about we make that Element class accepts them too and than both factory methods get an optional argument, like @norzechowicz proposed? This gives us an additional ability to override parameters passed via the configuration at runtime.
Faced the same issue, so it's really useful
This improvement can resolve this issue