I am making automation for Desktop .net application. one of the challanges i am facing is date combo box which is name changing everyday

enter image description here

enter image description here

uIItem22Ağustos2016PazDropDown part changing everyday...

Above i gave you the part of the interface and the code generated in background

1 Answer 1


Talk to developers to give the item permanent id.

Not sure why name is changing, in my experience ID is usually dynamic, generated by framework and name is left alone.

If you cannot get permanent ID, or name, try adding CSS class (and locate element by class). Or use CSS-style locators.

Failing that, you are in for a world of pain: forever-flaky XPath. :-(

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.