.Visibility on Keenthemes (Metronic) Modals
Posted: Fri Oct 11, 2013 11:55 am
I am automating a Web GUI developed using this theme:
http://www.keenthemes.com/preview/index ... onic_admin
One feature that is available is that of a Modal. The attached screenshot shows an example Modal on their website. In this case I clicked on the UI Features menu then the "View Demo" button of the "Basic Example".
What I want to do on the web site I'm automating (the same issue arises on this example site...) is once a Modal button is clicked ("View Demo" in this case), I want to wait for a period of time until it is visible then do stuff on the Modal. There could be a delay as to when it loads so I'm specifying a timeout to wait.
To do this i'm using the .Visible on the rxpath of one of the elements inside the Modal. Once this is visible I know I can safely proceed. This is fine in the main.
However ........it seems that once a Modal has been launched, it will always be detected as "visible" even though it has been closed.
Opening another Modal will clear the situation where any check for the original Modal will return a boolean False... as expected. The 2nd Modal is then the Modal that is "visible" regardless if it then open or closed.
What's more, when the Modals are closed and my code returns the erroneous True the Spytool shows the Modal as being set to False in the Layout detail.
Please try the above scenario on the example URL above. Can you suggest any workarounds to this?
Thanks,
B.
http://www.keenthemes.com/preview/index ... onic_admin
One feature that is available is that of a Modal. The attached screenshot shows an example Modal on their website. In this case I clicked on the UI Features menu then the "View Demo" button of the "Basic Example".
What I want to do on the web site I'm automating (the same issue arises on this example site...) is once a Modal button is clicked ("View Demo" in this case), I want to wait for a period of time until it is visible then do stuff on the Modal. There could be a delay as to when it loads so I'm specifying a timeout to wait.
To do this i'm using the .Visible on the rxpath of one of the elements inside the Modal. Once this is visible I know I can safely proceed. This is fine in the main.
However ........it seems that once a Modal has been launched, it will always be detected as "visible" even though it has been closed.
Opening another Modal will clear the situation where any check for the original Modal will return a boolean False... as expected. The 2nd Modal is then the Modal that is "visible" regardless if it then open or closed.
What's more, when the Modals are closed and my code returns the erroneous True the Spytool shows the Modal as being set to False in the Layout detail.
Please try the above scenario on the example URL above. Can you suggest any workarounds to this?
Thanks,
B.