github seleniumbase/SeleniumBase v2.4.34
2.4.34 - iframe methods and more

latest releases: v4.32.9, v4.32.8, v4.32.7...
2 years ago

iframe methods and more

Here's the full list of iframe method now (some already existed):

self.switch_to_frame(frame, timeout=None)

self.switch_to_default_content()

self.switch_to_parent_frame()

self.set_content_to_frame(frame, timeout=None)

self.set_content_to_default(nested=False)
# Duplicates: self.set_content_to_default_content(nested=False)

self.set_content_to_parent()
# Duplicates: self.set_content_to_parent_frame()

For an example of these methods in action, see: https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_iframes.py

If locating an element by the :contains("TEXT") selector and the element is not found, then the output will display that selector in CSS Selector format (rather than in the messy XPath format that the selector was converted to prior to being used). Note that the :contains("TEXT") CSS Selector is only valid in SeleniumBase, as it converts that into a valid XPath Selector before using it in a regular Selenium command.
Eg: 'div:contains("Math")' in SeleniumBase CSS becomes "//div[contains(., 'Math')]" in XPath.

Don't miss a new SeleniumBase release

NewReleases is sending notifications on new releases.