haseeb_saleem
5 years agoRegular Visitor
Option keyword is not working on firfox using Jscript for web automation
Hi Team,
I am unable to use the option keyword while getting all the values of dropdown in firefox. Is there any other way to get all the dropdown value ?
Example:
if (desiredObject.Exists) {
Log.Message("Dropdown list Found");
var opts = desiredObject.options; // This line on working of IE but not for Firefox
for (i = 0; i < opts.length; i++) {
ddlArray[i] = opts.options[i].value;
}
Thank You.
Hi haseeb_saleem,
Try using Object Spy to identify the property you can use to get the content. For web controls, there should be many options, innerHTML, contetnText, etc.