Robot Framework - need date from JQUERY Widget date picker - robotframework

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.

Related

Is any way to change the year faster from a datePicker element in javaFX?

I'm working with javaFX - in particular the datePicker node and I was just wondering, instead of incrementally changing the date via mouseclick in the datePicker popup menu, is there a faster way of changing the year?
I was hoping there would be a way to make the year field editable but I was unable to find such a solution.
You might just add a second control to set the year more quickly with the mouse and then coordinate the display (model) of both controls.

How to display ngx-timepicker-field timepicker next to a div , instead of showing it as a pop up

I want to display a time picker in my application in which either user can enter the time manually or pick it from a time picker.
And for this, I am using the ngx-timepicker-field and it works perfectly fine.
The issue is instead of showing the time picker pop up in the middle of the page is there any option available to show it near to the input filed or a div. similar to appends to input option available for ngx-material-timepicker
Reference link: https://agranom.github.io/ngx-material-timepicker/
Any help would be highly appreciated.
Thanks

Setting ControlID to be used for AutoIT

I am trying to do some automated functional testing for a windows app and I just got my hands on AutoIT. Looks like most (if not all) standard windows applications have a Control ID set. Unfortunately, the Control ID field is blank when i mouse hover using the Finder tool. So looks like the application (written in C) hasnt set a ID to each element?
I've used XCode's UI Automation for iPad apps and we use "setAccessibilityIdenitifier" to uniquely identify each field. I am trying to find out the equivalent for a Windows application.
That begs the question, is AutoIT even the correct tool? All my testing is calculation based. So you can assume 2 input fields and one output. So if the user enters 5, and 2 and hits "Add", I need to check if the output is 7. So i need to uniquely identify each element.
I also noticed when there is a group of elements, when i hover my mouse over the group, i get "Static" as the classname and only the coordinates change when i try to access each element, and every other control like Instance, ClassNameNN all remain the same. Any ideas?
Thanks in advance!
EDIT: Thanks to the AutoIT forum guys, the group issue is fixed - http://www.autoitscript.com/forum/topic/151055-autoit-basics/
I still need to know how to set Control IDs from the application side C code

Display calendar control with week number and capture week number when user selects and display in textbox

I am using a Ajax calendar control to pop up calendar from text box, want to display the week number in the calendar control itself, after user selects a week in the week mode (SelectionMode="DayWeek"), would like to display that week number in the text box. Preferably looking to implement using asp.net calendar control not jQuery.
Appreciate any assistance.
Thanks
Thought not to use the jquery, due to the ease and so many folks having solution out there i found the solution.
http://jsbin.com/eliki/16/
one of the issue is the the SQL server week (mostly in US) starts from Sunday, but iso8601Week starts from Monday, I did work around this by placing the weekend towards the end and disabling. Let me know what you think of the solution or have better solution out there.
http://jsbin.com/eliki/16/
Ujjwal

Telerik RadScheduler - select multiple resources

I'm using Telerik scheduler to display a Timeline view of meetings. The resources derive from the Person class, and they are Advocate, and Legislator.
On the Y axis, I am listing Advocates, and on the X axis, I am listing blocks of time in one hour increments.
When I double click an appointment, the Edit Appointment modal dialog pops up and lists Advocates and Legislators.
Since meetings will have multiple advocates and possibly multiple legislators in attendance, I would like to have a checkbox list inside the resource dropdowns on the edit screen. Is there any way to accomplish this?
I believe this will allow me to solve one problem in that, if Peter Pan and Homer Simpson both are to attend the same meeting, clicking the meeting in the row for either of those two advocates will display 'Peter Pan' in both instances (or sometimes '-', not yet sure where that comes from) rather than 'Homer Simpson' where I open up the meeting from his row.
If it is not possible to introduce checkboxes to the resources list, can you suggest an alternate way around the ultimate issue in the above paragraph? Thanks in advance.
Telerik supports the adding of a listbox to support what you are trying to do. On the Scheduler itself add the code below that mimics your field names that your advocates are pulling from in your DB:
<ResourceTypes>
<telerik:ResourceType DataSourceID="SqlDataSource2" ForeignKeyField="Adv_AdvocateID"
KeyField="Adv_AdvocateID" Name="Advocate" TextField="Adv_FullName" AllowMultipleValues="true" />
</ResourceTypes>
The next step is to populate the resources using a custom provider. See this program here for a great project in which you can see resource population in action. Using the SchedulerDBProvider class you can then adjust their example to more represent your fields and populate the appointments accordingly with your desired ResourceTypes.
In terms of getting that particular drop down to have multiple selections via checkboxes you would most likely have to define your own custom advanced template. This route allows you to take a UserControl and use that as the edit view for your appointments. There's a demo that displays all of this (including source code) right here.
However, having that RadComboBox there might not even be the ideal approach to take. What about just a simple list of checkboxes? This demo shows off how a very simple declaration for the RadScheduler can achieve this functionality. Additionally, there is some code-behind (both in C# and VB.NET) that shows off how you can customize the text on each appointment, which might be helpful in the case that you're referring to.

Resources