C#-Selenium:将文本传递到弹出窗口中的文本框

C#-Selenium:将文本传递到弹出窗口中的文本框,c#,selenium,C#,Selenium,有人能帮我找到文本框标识,这样我就可以在打开的弹出窗口中将文本传递给每个文本框吗?我试图找出每个文本框中的差异,我发现所有文本框都有相似的控件类型,我尝试使用“SearchProperties”。我对赛琳纽姆还很陌生 Code: this.UserNameTextBox.SearchProperties[WinControl.PropertyNames.ControlType] = "Edit"; this.UserNameTextBox.SearchProperties[WinControl.

有人能帮我找到文本框标识,这样我就可以在打开的弹出窗口中将文本传递给每个文本框吗?我试图找出每个文本框中的差异,我发现所有文本框都有相似的控件类型,我尝试使用“SearchProperties”。我对赛琳纽姆还很陌生

Code:
this.UserNameTextBox.SearchProperties[WinControl.PropertyNames.ControlType] = "Edit";
this.UserNameTextBox.SearchProperties[WinControl.PropertyNames.ClassName] = "WindowsForms10.*"; // WindowsForms10.* is not it`s complete name, I dont want mention it`s complete name.
PS:我不想出于某种目的使用“UITestControlCollection”功能