Ultrawingrid dropdown menu scroll down - windows

I am automation tester and using LEANFT C# tool in windows applications.
We have a scenario where I need to scroll down dropdown menu and select the value inside the ultrawingrid. I am able to select the values that are shown in first screen after clicking the dropdown menu. I need to scroll down the dropdown but not able to do it. I tried like below syntax
"system.windows.forms.sendkeys("{PGDN}")"
"system.windows.forms.sendkeys("{DOWN}")"
"system.windows.forms.sendkeys("{END}")"
How to scroll down the dropdown menu one by one and select the values ?

Related

Dependent dropdown lists with selenium in Python3

I am writing a python script that should automatically download an excel file from a website. Yet, in order to generate the excel file, several drop-down lists need to be selected (eg.: Select continent, then select country, then select city... etc.). This means that I need to select one value from the drop-down menu "A" in order for the drop-down menu "B" to show the available values, once the I have selected a value in the drop-down menu "B" I can continue with drop-down "C", and so on.
The problem is that every time I select one value from one drop-down menu (say, from drop-down menu "A") the website is refreshed in order to show the values available for the subsequent drop-down menu.
So far I have been able to access the website with selenium while selecting only a value from the first drop-down menu (eg. Continent), however I am facing difficulties in dealing with the subsequent drop-down menus. Does anyone have an idea of how I could deal with this?
So far my code looks like:
from selenium import webdriver
from selenium.webdriver.support.ui import Select
driver=webdriver.Firefox()
driver.get("https://daten.ktbl.de/feldarbeit/entry.html#0")
element1=driver.find_element_by_name("hgId")
drp1=Select(element1)
drp1.select_by_visible_text("Bodenbearbeitung")
Many thanks in advance,
best
Chico
Well, found out:
wait for the ajax to load the website after the selection:
driver.implicitly_wait(20)

Custom drop-down as an item in a kendo tree

I am trying to create an item that is a button "show more" and when you press on it you can show a kind of context menu / drop down that all of the items in that drop down are with checkboxes and there is a search component in it too, so you can search some items in the dropdown by their name. For example: (instead of "c++,c#,Object c" it's should show "show more", i.e. static text)
I tried to use kendoContextMenu. But I don't know if it's could work because the problem with context menu is that when I will click on a checkbox the menu will close. Please advise me of a way to do that or if you have an example of code. Thanks!
The MultiSelect component might be a good starting point
https://docs.telerik.com/kendo-ui/api/javascript/ui/multiselect.
My understanding is that MultiSelect does not have a "select more than one at a time in dropdown" feature.
You might consider using a pop up window and within that implement your own custom ui that features everything you want
search term box
scrolling list of selected and selectable items
accept or cancel changes in selection
Regarding your dojo that extends drop down list, I can't code the extension for you. However, changing the dataSource assignment to a setDataSource call will populate the extension component according to the template.
// kendo.ui.DropDownList.fn.dataSource = options.testItemSource;
me.setDataSource(options.testItemSource);

Win32 ComboBox: Programmatically select (highlight) string from the list, without update the edit control

My goal is to Programmatically select items from the List of the combo box, but without updating the edit control. The same can be achieved with the mouse. E.g. when you drop down and hover an item from the list, that item is highlited. And that is all. If you want to select in it the combo box (e.g. move it to the edit control) - you must click on the LisBox.
I tried with CB_SELECTSTRING. But it automatically updates the ComboBox edit control with the selected text which is not what I want. I want to do this using raw Win32 or VB6
Thanks
There is a big difference between highlighting an item in the drop-down list and actually selecting an item to make it active. CB_SELECTSTRING selects an item, as its name implies. But there is no official ComboBox API to highlight an item, though.
However, you can display the drop-down list manually (CB_SHOWDROPDOWN), and either:
move the mouse over the desired item so the list can perform hot-tracking logic.
manipulate the list directly. Use CB_GETCOMBOBOXINFO or GetComboBoxInfo() to get the list's HWND, and then send LB_SETCURSEL to it.

selenium - how to program using a select dropdown menu

I want to simulate the user clicking on a text field, using the dropdown and selecting an item.
I can get them on the field and the dropdown working with:
click //input[#id='select_students']
keyPress //input[#id='select_student'] \40
but I can't seem to get 'picking' an item in the dropdown.
I've tried using keyPress with Keys.ENTER as the value but I get forced to put in a Target (selenium IDE in firefox this is) and I don't know what to use as the target.
I could use something that press Enter regardless regardless of target if it's available.
Below logic might be useful for you.
click css=select[id="select_students"]
select css=select[id="select_students"] label=student10
click css=option[value="student10"]

Is it possible to click a link in dropdown list without selecting that option?

I have a dropdown list. When users hover on an option, the view link will show up. You can click "View" to see more details of that option. But now every time I click it that option will have to be selected. Is there a way to make it so that when I click "View", I can see details in a popup window and that option won't be selected? Or is there a way to go around it?
I would do this by making the clickable area of the view link (the <a> anchor tag) a container box with a higher z-index than the dropdown option
Then the view link will be on top, and clicking it will link without selecting the underlying dropdown option.

Resources