|
@@ -1,4 +1,3 @@
|
|
|
-from selenium.webdriver.common.action_chains import ActionChains
|
|
|
from selenium.webdriver.common.by import By
|
|
|
|
|
|
from nicegui import ui
|
|
@@ -13,7 +12,5 @@ def test_keyboard(screen: Screen):
|
|
|
screen.open('/')
|
|
|
assert screen.selenium.find_element(By.ID, keyboard.id)
|
|
|
screen.wait(1.0)
|
|
|
- ActionChains(screen.selenium) \
|
|
|
- .send_keys('t') \
|
|
|
- .perform()
|
|
|
+ screen.type('t')
|
|
|
screen.should_contain('t, KeyboardAction(keydown=False, keyup=True, repeat=False)')
|