How to keep the dropdown list open in robot framework - selenium

Here, I will click the actions tab and select create new project from the drop down list.
While executing the script in robot framework, after clicking the actions tab the drop down list will be opened and after few seconds it automatically got closed.
I need to know how to keep the list to be in open.

Most likely, what is happening is that the library you use to create the dropdown is designed to dismiss the dropdown when the mouse leaves the dropdown. If that is the case, the solution is to first move the mouse over the dropdown before clicking on it.
The SeleniumLibrary has a Mouse over keyword that will simulate the mouse being over the element.

Related

How to unfocus from all inputs/elements in Selenium without tabbing out

I have a form where I fill in textboxes through selenium (java). Some of the textboxes dynamically generate extra content when you click on them and remove the content when you focus on something else. This is a problem when I automate because if I am focused on a text box and try to click on something else, when the page removes the content it doesn't register my click and I need to click again. This leads to flakey behaviour since I need to now consider whether I need to click or double click a button depending on what element I was focused on before.
I can't send a tab key to the text box because sometimes it will tab into another textbox that has the same dynamic generation behaviour, leading to the same scenario as before.
I tried clicking the page element but it also doesn't seem to work. I also tried clicking the root div. It just doesn't seem to register my click (I also tried jsclicks)
What I would like to do is have a general way to unfocus a text box after I fill it.
Thanks!

Selenium ClickandWait

Using id=incidentsCheckBox gets me an error but when clicking manually it shows up fine. What is the best way of capturing dynamically generated icons (incidentIcons), which pop up when a checkbox is clicked, which if click individually will show a popup data of status?

OpenERP - selecting Create dropdown box option does not launch the dialog window

I have a dropdown box for Class ID in a custom view. When I type new, non existent classID in the dropdown box, the dropdown shows options, one of which is Create new_class _id. However, when I click on Create '0078' for instance, no dialog window is launched and the new class is created. I don't know 100% if this is correct behaviour. Please see the picture. What I have to do to launch the window?
That will be created automatically , when you click on the Create "0078" ..... after click on that go to the button besides the Item Class field (that logo shows with arrow sign).... that will show you your created item and dialog window... :)
It will be true when there are no required field in the window that will be open for create new item. If you put more than one required field in dialog-box(form view), then it will pop-up. that you are asking.....!!
– Mischievous

How can I locate a UI element in VB6 code?

I have no experience with VB, but I have looked around a decent amount and cannot figure this out.
I am currently recreating a VB6 application to a VB.net application. There are a bunch of elements that are hidden until certain options are chosen. Obviously, not having the element created on the form gives me this error:
Looking at the VB6 environment, I find the mDNP variable in the drop down menu on the right, but it does not tell me where it is located, or what type of UI element it is. It says Menu next to it, but I have gone through all of the menus and cannot find it anywhere.
The issue of hidden elements is not the cause of the error; even if not visible, they must exist. More likely, you havent yet (re)created that VB6 object in the new NET project code (especially if you cannot find it in VB6).
Menus were odd in VB6 and used a special editor rather than just being a component or control you added. mDNP likely relates to a drop down menu list/window. To find all these creatures in VB6:
Open the form designer
Right Click
Select Menu Editor
There is also a toolbar button, but it may missing as a result of customization:
This will show all the menu elements for this form including ones which might be set to invisible to be later invoked as PopUps or context menus in today's lingo. There is no indicator that a form has a menu (like the form tray components in .NET) other than opening the Menu Editor.

Using Robotium with a contextual menu

I'm testing an application with Robotium, and I have a custom listview with checkboxes. When I click on a checkbox it loads a contextual menu giving the user buttons to modify and delete those items.
I can get Robotium to click the checkbox which loads the menu, but for some reason I can't get it to click on the delete button.
I've tried:
solo.clickOnActionBarItem(R.id.menu_delete);
solo.clickOnMenuItem("Delete");
solo.clickOnImageButton(1);
solo.clickOnImage(1);
So far nothing has worked. Is it possibly because I am clicking the button before the menu has popped up? How can I get Robotium to wait?
It's actually very easy, just click on the view by id:
solo.clickOnView(getActivity().findViewById(R.id.menu_edit));