Iakiv Kramarenko

Results 153 comments of Iakiv Kramarenko

Hm, seems like we even not need full pydantic style of complete class kitchen DSL-based implementation. With simple python descriptors we already can achieve the following analog of the previous...

While self.open can be still implemented explicitely ;) No need to build a complete POM DSL around it...

Hm, looks as good enough for POC... ```python import pytest from selene import browser, have, be, command, query from selene.support._pom import element, all_ class DataGridMIT: grid = element('[role=grid]') header =...

currently only shared.browser.execute_script exists in Selene (`Browser.execute(self, script)` does not) and it is already deprecated... but need we it or not? shouldn't we keep it to be consistent with `Element.execute_script(self,...

Probably, historically, all these classes happened to live one file because of some "recursive imports" problem, that we had in the past... But maybe that problem could be fixed still...

we also will probably have methods to find INSIDE collection – elements by selector... e.g. for ```html A1A2 B1B2 ``` so: * `browser.all('tr').all('td').should(have.texts('A1', 'A2', 'B1', 'B2'))` * `browser.all('tr').element('td').should(have.texts('A1', 'B1'))` or...

.element_by has one benefit over .first_by... The phrase `items.element_by(have.text('foo'))` leads to a more natural meaning that such element should be only one... while `items.first_by(have.text('foo'))` gives a clue that it's just...

probably something like this ``` browser.perform(command.chain(lambda actions: actions.click_and_hold().pause(1).release().perform()) ``` as a shortcut to ``` browser.perform(lambda driver: ActionChains(driver).click_and_hold().pause(1).release().perform()) ``` would be less efficient...