The output from display is placed in the target element.
()
| 77 | |
| 78 | |
| 79 | def test_target_parameter(): |
| 80 | """ |
| 81 | The output from display is placed in the target element. |
| 82 | """ |
| 83 | display("hello world", target="test-element-container") |
| 84 | target = web.page.find("#test-element-container")[0] |
| 85 | assert target.innerText == "hello world" |
| 86 | |
| 87 | |
| 88 | def test_target_parameter_with_hash(): |