File tree Expand file tree Collapse file tree 4 files changed +31
-13
lines changed
packages/selenium-ide/src/browser
windows/ProjectEditor/tabs/Tests Expand file tree Collapse file tree 4 files changed +31
-13
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,8 @@ const testCore = {
177
177
value : 'Value' ,
178
178
windowHandleName : 'Window Handle Name' ,
179
179
windowHandleNameNote : 'Variable name to set to the new window handle' ,
180
+ windowTimeout : 'Window Timeout' ,
181
+ windowTimeoutNote : 'The amount of time to wait for the window to open (in milliseconds)' ,
180
182
commands : 'Commands' ,
181
183
tabCommand : 'Cmd' ,
182
184
tabTarget : 'Target' ,
Original file line number Diff line number Diff line change @@ -183,6 +183,8 @@ const testCore = {
183
183
value : '指令值' ,
184
184
windowHandleName : '窗口句柄名称' ,
185
185
windowHandleNameNote : '要设置为新窗口句柄的变量名称' ,
186
+ windowTimeout : '窗口超时' ,
187
+ windowTimeoutNote : '等待窗口打开的时间量(以毫秒为单位)' ,
186
188
commands : '指令集' ,
187
189
tabCommand : '指令' ,
188
190
tabTarget : '关键字' ,
Original file line number Diff line number Diff line change @@ -70,18 +70,32 @@ const CommandEditor: FC<CommandEditorProps> = ({
70
70
< ArgField command = { correctedCommand } { ...props } fieldName = "target" />
71
71
< ArgField command = { correctedCommand } { ...props } fieldName = "value" />
72
72
{ command . opensWindow && (
73
- < CommandTextField
74
- command = { correctedCommand }
75
- { ...props }
76
- fieldName = {
77
- intl . formatMessage ( {
78
- id : languageMap . testCore . windowHandleName ,
79
- } ) as 'windowHandleName'
80
- }
81
- note = { intl . formatMessage ( {
82
- id : languageMap . testCore . windowHandleNameNote ,
83
- } ) }
84
- />
73
+ < >
74
+ < CommandTextField
75
+ command = { correctedCommand }
76
+ { ...props }
77
+ fieldName = {
78
+ intl . formatMessage ( {
79
+ id : languageMap . testCore . windowHandleName ,
80
+ } ) as 'windowHandleName'
81
+ }
82
+ note = { intl . formatMessage ( {
83
+ id : languageMap . testCore . windowHandleNameNote ,
84
+ } ) }
85
+ />
86
+ < CommandTextField
87
+ command = { correctedCommand }
88
+ { ...props }
89
+ fieldName = {
90
+ intl . formatMessage ( {
91
+ id : languageMap . testCore . windowTimeout ,
92
+ } ) as 'windowTimeout'
93
+ }
94
+ note = { intl . formatMessage ( {
95
+ id : languageMap . testCore . windowTimeoutNote ,
96
+ } ) }
97
+ />
98
+ </ >
85
99
) }
86
100
< CommandTextField
87
101
command = { correctedCommand }
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export interface CommandArgFieldProps extends CommandEditorProps {
17
17
}
18
18
19
19
export interface CommandFieldProps extends CommandEditorProps {
20
- fieldName : 'comment' | 'windowHandleName' | LocatorFields
20
+ fieldName : 'comment' | 'windowHandleName' | 'windowTimeout' | LocatorFields
21
21
note ?: string
22
22
}
23
23
You can’t perform that action at this time.
0 commit comments