dzharii / swd-recorder

Selenium WebDriver Page Recorder (Page Objects)
MIT License
189 stars 71 forks source link

Unable to select Dojo Dialogs/Modals #24

Open AlexMihailescu opened 9 years ago

AlexMihailescu commented 9 years ago

There seems to be an issue with Dojo modals as tested on http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/widget/tests/test_Dialog.html For some reason for such elements it is not possible to enter a name for them and save them even though they can be identified.

dzharii commented 9 years ago

@AlexMihailescu, thank you for reporting the issue.

This is not the easy one, because dojo's modal window code is dynamically disables all the text fields on the page, including the Page Recorder's one :(

I can suggest to do a workaround:

  1. In the browser, Invoke the page recorder's locator window
  2. Switch to the Page Recorder App, and open the tab “Locators”. In the text box under “WebBrowser Web Element Explorer” you will see the captured locator.
  3. Please, copy it manually into the XPath field and save the new element my pressing button “Update”

I know, this is inconvenient way to use the application... but I cannot guarantee I will be able to fix this issue soon.

image

AlexMihailescu commented 9 years ago

Thanks for the fast response, while this bug is an annoyance, this solution is unlikely to impact my workflow too much. Currently most of what I'm working with requires that I use CSS selector which I am getting with Firebug and Firepath