[Internet Explorer 10, Windows 7, Ranorex 5.0.3]
I have a test step to verify that a button does NOT exist within a dialog box in a web application. The repository item for the button is identified as an "innertext" WebElement.
The button does not appear on the web page, when the test step is run, yet the test fails - i.e. Ranorex is reporting that the button does exist. When I select highlight for the button element in the repository, nothing in the web page is highlighted.
What are the possible reasons why Ranorex could be seeing a button on a web page that doesn't exist?
Thanks!
Ranorex seeing a button that is not visible on a web page?
Re: Ranorex seeing a button that is not visible on a web page?
With most web pages, the controls are all loaded at once, even if they are not being used right then. It is more efficient to pull all the HTML/Javascript down at the same time. But this means that the elements will exist, even if they aren't visible.
In your case, I would suggest using the "Visible" property of the element instead of "Exists".
In your case, I would suggest using the "Visible" property of the element instead of "Exists".
Shortcuts usually aren't...
Re: Ranorex seeing a button that is not visible on a web page?
Could you provide the HTML code for the button and/or the css related?Fergal wrote:[Internet Explorer 10, Windows 7, Ranorex 5.0.3]
I have a test step to verify that a button does NOT exist within a dialog box in a web application. The repository item for the button is identified as an "innertext" WebElement.
The button does not appear on the web page, when the test step is run, yet the test fails - i.e. Ranorex is reporting that the button does exist. When I select highlight for the button element in the repository, nothing in the web page is highlighted.
What are the possible reasons why Ranorex could be seeing a button on a web page that doesn't exist?
Thanks!
-
- Certified Professional
- Posts: 455
- Joined: Tue Feb 18, 2014 2:14 pm
- Location: Co Louth, Ireland
- Contact:
Re: Ranorex seeing a button that is not visible on a web page?
Thanks very much krstcs, I changed that setting in the "General" area of the repository for the relevant buttons and the test is now working perfectly.krstcs wrote:...suggest using the "Visible" property of the element instead of "Exists".
Thanks for your reply Tnimni, thankfully I have it working now.Tnimni wrote:Could you provide the HTML code for the button and/or the css related?