mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-22 11:45:28 -05:00
Fix py-repl auto-generate=true (#910)
What is not tested is broken man_facepalming Test&fix <py-repl auto-generate=true> which was broken by PR #884
This commit is contained in:
@@ -275,6 +275,15 @@ class PyScriptTest:
|
||||
if wait_for_pyscript:
|
||||
self.wait_for_pyscript()
|
||||
|
||||
def iter_locator(self, loc):
|
||||
"""
|
||||
Helper method to iterate over all the elements which are matched by a
|
||||
locator, since playwright does not seem to support it natively.
|
||||
"""
|
||||
n = loc.count()
|
||||
elems = [loc.nth(i) for i in range(n)]
|
||||
return iter(elems)
|
||||
|
||||
|
||||
# ============== Helpers and utility functions ==============
|
||||
|
||||
|
||||
Reference in New Issue
Block a user