We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
get_text()
selector
1 parent 9950825 commit 94f2216Copy full SHA for 94f2216
2 files changed
seleniumbase/core/sb_cdp.py
@@ -1335,7 +1335,7 @@ def get_tabs(self):
1335
def get_window(self):
1336
return self.loop.run_until_complete(self.page.get_window())
1337
1338
- def get_text(self, selector):
+ def get_text(self, selector="body"):
1339
return self.find_element(selector).text_all
1340
1341
def get_title(self):
seleniumbase/fixtures/page_actions.py
@@ -2138,7 +2138,7 @@ def wait_for_non_empty_text(
2138
2139
def get_text(
2140
driver,
2141
- selector,
+ selector="body",
2142
by="css selector",
2143
timeout=settings.LARGE_TIMEOUT
2144
):
0 commit comments