Sets the context that Selenium commands are running in. Args: context: Context to set, should be one of CONTEXT_CHROME or CONTEXT_CONTENT.
(self, context)
| 72 | raise |
| 73 | |
| 74 | def set_context(self, context) -> None: |
| 75 | """Sets the context that Selenium commands are running in. |
| 76 | |
| 77 | Args: |
| 78 | context: Context to set, should be one of CONTEXT_CHROME or CONTEXT_CONTENT. |
| 79 | """ |
| 80 | self.execute("SET_CONTEXT", {"context": context}) |
| 81 | |
| 82 | @contextmanager |
| 83 | def context(self, context): |