My question was,
If I go to this URL"http://www.quikr.com/msp?type=landing&aj=1" and select a sell or buy
and we select a category and then sub category ,then for each sub category different number of other fields/options are coming to select.
I was trying to automate this application with hybrid framework, so in industry how this combinations are handled??
I cannot simply write the keywords steps as its not same for all subcategory.
I cannot individual user defined functions as it would be some many if we will make combinations for each.
So just thinking how this type of cases are handled.
the thing about the example you gave me is that all drop down have the same "ID" so automation won't be difficult we just have to careful how we send keys
like
driver.findelement(By.id(id1)).sendKeys("option1");
driver.findelement(By.id(id2)).sendKeys("option1.1");
driver.findelement(By.id(id3)).sendKeys("option1.2");
driver.findelement(By.id(id4)).sendKeys("option1.3");
or
driver.findelement(By.id(id1)).sendKeys("option2");
driver.findelement(By.id(id2)).sendKeys("option2.1");
driver.findelement(By.id(id3)).sendKeys("option2.2");
driver.findelement(By.id(id4)).sendKeys("option2.3");
options we have to be careful about other then that i see there is no problem.