Manage Grades Selenium Scripting
Summary
Id value of input fields is changing dynamically, hence selenium test script is failingContent
Steps to replicate the issue:
1. Login to test instance.
2. Go to Workforce Structure -> Manage Grades -> Create
3. Check input value of Effective Start date by pressing F12 and get the elements which is -
"<input id="_FOpt1:_FOr1:0:_FOSritemNode_workforce_management_workforce_structures:0:MAt3:0:AP1:esd::content" name="_FOpt1:_FOr1:0:_FOSritemNode_workforce_management_workforce_structures:0:MAt3:0:AP1:esd" class="x2b" placeholder="dd/mm/yy" value="01/01/51" aria-describedby="_FOpt1:_FOr1:0:_FOSritemNode_workforce_management_workforce_structures:0:MAt3:0:AP1:esd_afrdescBy" data-afr-adffdow="1" data-afr-adftdy="2019-02-25 08:58:35">
But earlier the input id was "_FOpt1:_FOr1:0:_FONSr2:0:MAt3:1:AP1:esd::content". Now the id got changed. So how do i code to capture the element, if everytime the id value gets changed.