Selenium – How to perform auto complete textbox operation in selenium IDE

functional-testingseleniumselenium-idetesting

I am testing a Magento POS application with Selenium IDE. There is a auto complete textbox, where I need to put the product name. As the auto complete textbox works, when we started typing, it starts searching. I tried a lot, but still I am unable to figure out how to test that in Selenium. I have tried the below command

typeAndWait(selector,sony)
verifyText(class=ui-autocomplete:first-child,sony)
click(class=ui-autocomplete:first-child)

But it is not working. Any help? I don't understand, what to do ?

Best Answer

Use waitForText instead of verifyText

Related Topic