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
consider browser.perform(action_chains_object) #510
Comments
probably something like this
as a shortcut to
would be less efficient... |
we can use ideas from here to implement even something like this:
where chain - is a property of command module, that each time "on get" returns new ActionChains object! |
hm, but this will only work with "selene.browser, i.e. the shared browser, not any other Browser instances", hence.. we can't use this Idea in such way... |
but this could work:
where # command.py
import selene
def chain(driver: Optional[WebDriver] = None):
return ActionChains(driver or selene.browser.driver) |
ok... why then not to go even further:
where actions is an instance of SeleneActionsChain that extends Selenium's ActionsChain and overrides .perform() method to utilize Selene's waiting!? |
+ move Browser class from entity.py to _browser.py
just as a kind of shortcut to
browser.perform(lambda driver: action_chains_object.perform())
where
actions_chain_object = ActionChains(browser.driver).some().chain().of().commands()
(without.perform()
in the end of chain)The text was updated successfully, but these errors were encountered: