Hi I am trying to automate tests of my website. Part of it includes clicking on ADD button, entering the information in the text boxes and saving that information. Currently, as soon as my script clicks the ADD button it does not wait and start putting the values in the text box. I tried:
driver.Manage().Timeouts()
What I am thinking of doing is wait for the ADD button to get disabled and then add the values in the text box. Is there a way to achieve that? The following code is incorrect and gives me an error:
wait.Until(Driver.FindElement(By.Id("addbutton")).Enabled)==false;