Test both javascript and python callbacks.
(self, js_callback)
| 187 | self.browser = browser |
| 188 | |
| 189 | def test_multiple_callbacks(self, js_callback): |
| 190 | """Test both javascript and python callbacks.""" |
| 191 | js_print(self.browser, "Python", "test_multiple_callbacks", |
| 192 | "Called from Javascript. Will call Javascript callback now.") |
| 193 | |
| 194 | def py_callback(msg_from_js): |
| 195 | js_print(self.browser, "Python", "py_callback", msg_from_js) |
| 196 | js_callback.Call("String sent from Python", py_callback) |
| 197 | |
| 198 | |
| 199 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected