javascript - C# Populate generated datagrid using Selenium WebDriver -
i have page seems generate spreadsheet-style grid table using javascript. trying populate cells, cant locate elements using selenium.
when inspect cell wish populate using firebug can see has long dynamic id selenium cannot detect. visible when use firebug, however, when right-click + view source, there no grid visible.
i have tried selectors (id, css, xpath, etc) , have tried populating using ijavascriptexecutor. nothing seems work, , ready give up.
i have tried running ide; fails when comes dynamic fields.
any assistance appreciated.
found work around (its kind-of obvious , not ideal, meh...)
instead of targeting grid programmatically, simulated keystrokes using instance of actions:
actions actions = new actions(driver); actions.sendkeys(keys.tab).build().perform(); actions.sendkeys("text enter").build().perform();
Comments
Post a Comment