Button disabled or enabled test cases

hie ,

i am doing one web automation where i need to automate button enabled or diabled . as in this is a test case scenario that button should be disabled first and then enabled . how can i do this in automation.

depends on the structure / implementation of the button. In a first step we recommend to use UiExplorer / Browser F12 Developer tools and finding out how the button is modelled

  • as button element
  • as a div construct

in a next step find out the enable/disable triggering item e.g.:

  • <button disabled>
  • classes, Css property…

feel free to share with us the your RnD results and details

can i have a simpler solution activities wise ?

it is about the details which are needed on selecting the solution apporach / activity selection in a next stage

@Pooja_Kanwar,

Simpler but not recommended way would be adding delay before clicking on it.