selenium capture popup window

Asked by 徐女士

i want to capture a popupwindow`s textbox in the div level,but when i run the below code,it displays that:
document.getElementById(...) is null

code follows:
String js1 = "document.getElementById(\"sourceModal\").style.display='block';";
((JavascriptExecutor)driver).executeScript(js1);
driver.findElement(By.id("ChooseHouseHouseID")).sendKeys("212748");

Question information

Language:
English Edit question
Status:
Invalid
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

surely not a SikuliX question.

Use a Selenium forum or stackoverflow.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

See comment