List box selection is not working properly
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2023
11:35 PM
05-28-2023
11:35 PM
List box selection is not working properly
I am trying to select one option from listbox. The problem is selection is done on different element. Please check the below code for your reference
Browsers.Item(btChrome).Navigate("url");
Aliases.browser.BrowserWindow.Maximize();
var selectElement=Aliases.browser.pageSignUpForFacebookFacebook.formReg.selectMonth;
selectElement = ClickItem("Jun");
The above code is to select June but it is selecting October. Please help me out to resolve this issue. Thanks in advance.
Solved! Go to Solution.
Labels:
- Labels:
-
Script Tests
-
Web Testing
3 REPLIES 3
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2023
02:01 AM
05-29-2023
02:01 AM
Hi @Ravikaanth
What version of TestComplete are you running? There was a related fix in 15.51 : 15.51 Release Notes
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2023
03:00 AM
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2023
12:45 AM
05-30-2023
12:45 AM
If you are using JavaScript, then the coding to select an item should look like this,
var selectDay = Aliases.selectDay;
selectDay.ClickItem("16");
var selectMonth = Aliases.selectMonth;
selectMonth.ClickItem("Jun");
var selectYear = Aliases.selectYear;
selectYear.ClickItem("1980");
