Iakiv Kramarenko
Iakiv Kramarenko
or just keep thinks not concise but straightforward? kind of following YAGNI and KISS... OPTION 0.1 * `browser.all('tr').collected(lambda its: its.all('td')).should(have.texts('A1', 'A2', 'B1', 'B2'))` * `browser.all('tr').collected(lambda its: its.element('td')).should(have.texts('A1', 'B1'))`
Or maybe a bit more concise with extra helpers (to be added) inside already existing query.py: OPTION 0.2 * `browser.all('tr').collected(query.all('td')).should(have.texts('A1', 'A2', 'B1', 'B2'))` * `browser.all('tr').collected(query.element('td')).should(have.texts('A1', 'B1'))`
And this one I would add just for myself as big lover of FP's map & reduce:D OPTION 0.3.1 * `browser.all('tr').__map__(query.all('td')).should(have.texts('A1', 'A2', 'B1', 'B2'))` * `browser.all('tr').__map__(query.element('td')).should(have.texts('A1', 'B1'))` OR OPTION 0.3.2...
For now I have stopped on OPTION 2 * `browser.all('tr').all('td').should(have.texts('A1', 'A2', 'B1', 'B2'))` * `browser.all('tr').all_first('td').should(have.texts('A1', 'B1'))` Let's definitely forget about OPTION 1.1 * `browser.all('tr').all('td').should(have.texts('A1', 'A2', 'B1', 'B2'))` * `browser.all('tr').element('td').should(have.texts('A1', 'B1'))`...
It's not bad... But it becomes irrelevant when we for example use remote driver... Question is - can we choose a name that can be used in more cases...
yeap... might be a good option to consider...
As I now see, in context of #406, I might add something like config.options ... (though I was against this idea before...)... After that, we will decide on the fate...
`config.browser_name` definitely will be deprecated, because conflicts with Mobile context, where the default driver name is Appium, but we still via capabilities can configure betwean actual mobile browser name and...
@zhupengfarmer, Hey! We have an issue for this feature: https://github.com/yashaka/selene/issues/460 And yet, we have not come to the decision whether to add this feature or not. Before accepting this PR...
> Pay attention to difference between init and class attributes https://stackoverflow.com/questions/46720838/python-init-vs-class-attributes As far as I understand it: If you will need by somehow more than one instance of class, then...