Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't sendkeys in login UI #8

Open
loisalex opened this issue Jan 10, 2022 · 2 comments
Open

can't sendkeys in login UI #8

loisalex opened this issue Jan 10, 2022 · 2 comments

Comments

@loisalex
Copy link

Dear openfin experts,

I faced a issue below, hope your resolution, thanks.

issue description:
when navigate to my login page(window) after get driver successfully, i can find element(username), but sendkeys('124') not works. there is no error, it seems windhandle can't control my UI element(login UI)

code:
selenium.WebDriver driver
driver.navigate().to("http://****:8087/login.html");
Actions actions = new Actions(driver);
WebElement login=driver.findElement(By.id("username"));
login.sendKeys(Keys.CONTROL,Keys.chord("a"));
login.sendKeys(Keys.BACK_SPACE);
actions.moveToElement(driver.findElement(By.id("username"))).sendKeys("124").perform()

my application window information:
{
"uuid": "app_shell",
"name": "app_shell",
"url": "http://:8087/provider.html",
"parentName": "app_shell",
"parentUUID": "app_shell",
"childCount": 1,
"windowInfo": {
"size": "533w333h",
"position": "(7,7)",
"monitor": ""
},
"showing": false,
"subRows": [
{
"uuid": "fmo_app_shell",
"name": "internal-generated-window-d7fc4026-396d-4f73-88e7-4b278c41afd5",
"url": "http://
*:8087/login.html",
"parentName": "app_shell",
"parentUUID": "app_shell",
"childCount": 1,
"windowInfo": {
"size": "400w374h",
"position": "(153,440)",
"monitor": ""
},
"showing": true
}
]
}

@loisalex
Copy link
Author

@loisalex
Copy link
Author

does only debug mode app support selenium?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant