Java – test the enabled state of GWT simplepaager imagebutton in selenium
We use the simple pager provided by GWT to provide record / page navigation of data sets We want to test that we correctly control the enable state of the next / previous button Although simplepaager allows us to specify the enable / disable image for the button, the button itself is an internal class of imagebutton, which extends image instead of button Therefore, the generated HTML does not use the button enable / disable attribute, but provides a different embedded image for each state
Is there a reasonable way to detect the enabled status of the simplepaager navigation button in selenium?
Solution
In standard practice, you should create custom components, such as the image button I suggest you use isfw, which provides the function of creating custom component, which can be used together with comments In the component, you can specify the behavior by aut