Skip to content

Commit 7f75809

Browse files
committed
Pressing enter key when creating a new file in editor.
Using this approach as the create file button stays disabled when using send_keys() to populate the new file input field.
1 parent 6a1daa2 commit 7f75809

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/common/sketch/test_sketch.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ def test_add_projectfile_direct(self):
138138
)
139139
create_field = self.get_element(By.ID, 'createfield')
140140
create_field.send_keys('test_file.txt')
141-
create_button = self.get_element(By.ID, 'createbutton')
142-
create_button.click()
141+
create_field.send_keys(Keys.ENTER)
143142
WebDriverWait(self.driver, VERIFY_TIMEOUT).until(
144143
expected_conditions.invisibility_of_element_located(
145144
(By.ID, "creationModal")

0 commit comments

Comments
 (0)