unable to select drop down values by visible text
Hi, how to select a value from search box+drop(ajax text field) down by protractor?
Regards Om Prakash
ptor.driver.findElement(protractor.By.xpath('//*[@id="region"]/option[text()="YourSearchTextHere"]')).click();
unable to select text by using page object.
It depends on the way that the drop down is implemented. You'll probably need to use css selectors.
Elements are identifying before page load . It is working for non-angular applications. i kept browser.waitForAngular(); checked with browser.isElemenetPresent(by.css('element')); then also not working for angular applications.
I'm sorry, I need more information to be able to help you. Could you share your test code or the HTML of the dropdown?
Currently i am using this Pageobjectelemnt .$('[value='+variable+']').click(); I want to pass visible text instated of passing exact value. Drop down have the behavior as list out by sorting on typing(Ajax).
There's no general way to sort by visible text instead of exact value. You could try xpaths as @smahalingam suggested.
This doesn't seem to be a bug or feature request for Protractor, so I'm going to close the issue so we can keep our github repo tidy. Please ask general questions on stack overflow.