This is the screenshot of the calanderI want to create a keyword for selecting a date from the date-picker by robot framework can anyone help?
Related
This query relates to using Robot Framework to select dates from a JQUERY Widget date picker. The JQUERY code was developed elsewhere and I’m not in a position to post.
The approach tried was
MAXIMIZE BROWSER WINDOW
WAIT UNTIL PAGE CONTAINS Arrival Date
click element xpath=.//*[#id='ArrivalDateLabel']
click element xpath=.//*[#id='dp1503657643051']/div/div/a[2]/span
Error reported
ValueError: Element locator 'xpath=.//*[#id='dp1503657643051']/div/div/a[2]/span' did not match any elements.
Analysis
Screen shot 1 shows that part of the date picker calendar is not visible during the running of the Robot Framework test and I believe this may be the reason for this. The solution referenced below does not seem to switch the label marked arrival in the screenshot.
Screen shot 1
Similar previous query
How do I send value to a date picker in Robot Framework?
This is a "best efforts" fix.
Open the calendar by clicking the label xpath.
Using the key commands
press key link=10 \13 - will pick the 10th
press key link=11 \13 - will pick the 11th
The issue is my date selections are confined to one month.
I had to proceed on this basis but believe there must be a better solution.
I want to use Date picker control to set date and time as in this image:
I add Date Picker control to page but it is added without time tool.
In the item attributes, under Appearance there is an attribute Format Mask. If you set that to a value that includes time, the date picker will be rendered with the time component.
So I am trying to add a date time picker to my web application within Visual Studio, but it turns out I cant see it in the tool box. I am running VS 2012
If I go into the tool box and try and add it 'choose items > .net framework components > Find datetimepicker it is selected there!!!
Any reasons why I cant see it, or is there a way I can manually add this?
If you want to use Date Picket in your web application,you can download Aajx Toolkit based on your framework version 3.5 or 4.0.
After downloading the Aajx Toolkit,unzip the folder and find the.dll file.
Now You have to add reference of it into your application.
Right click on your application tools and select add new tab and name it 'Ajax Tools'.
Right click on that tab and select 'Choose Items'.
Popup window will come and click on browse button,select that unzipped .dll file and click on 'Ok' button.
You can see reference is added into your bin folder and see the new Ajax controls under the new 'Ajax tools' tab.
you can find Calender Extender control over there and you can use it by simply drag and drop into your page.
I am trying to create a Component1 in Tridion 2011 SP1. I also have Component2 which has already been created.
While creating a Component1 in Tridion, I have two fields for that Component, one is called 'SelectedType' which is a drop-down having values A,B,C which are options defined in the Schema. The other field called 'Name' which is also a drop-down, but its values should be retrieved from the second Component according to the value selected from 'SelectedType' field.
Component2 has the following fields named 'A', 'B','C'. Each field in Component2 is multivalued and is of type text.
So for example if I Select value 'A' from 'SelectedType' drop-down filed then my 'Name' drop-down field should get populated with the values fetched from field 'A' of Component2.
This functionality should not be implemented by adding any Extensions to the Tridion UI, or using any .NET code.
This should be purely implemented using the available functionality in Tridion.
Is there any scope of implementing event Handlers/Listeners in Tridion which populates values to the next drop-down field when an event has occured for the value change in first drop-down field?
This is not built-in functionality of Tridion, so you'll have to write some sort of extension. If you stick to the statement "without a GUI extension or .NET code" then the answer is a simple "no".
If you are willing to consider writing an extension AND you are on Tridion 2011 (or later), then you might be able to get this done using a Data Extender since the dependency you want is between two Components (and not fields within the same Component).
This will not be possible without creating a GUI extension I'm afraid. This functionality is not currently out of the box with SDL Tridion 2011. This is why the GUI is extendable.
Has anyone had any problems with the updating of the time value when using Vaadin DateField (or PopupDateField)? Whenever a new time is selected from the time drop downs located at the bottom of the popup calendar, the date textfield does not update with the new time selected. Only the day value updates properly when a different day is selected from the calendar. I have registered a Property.ValueChangeListener with my DateField, and through debug I've found that the valueChange() method is only entered when a different day is selected from the popup calendar (and hence updates value in textfield), and not when a different time is selected from the time drop downs. Is this a bug with Vaadin DateField? Or is there a workaround?
Any help would be much appreciated! Thanks in advance!
Cheers,
gc
See http://vaadin.com/forum/-/message_boards/message/216876 for answer.