You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Manage Grades Selenium Scripting

edited Feb 25, 2019 10:27AM in Human Capital Management 1 comment

Summary

Id value of input fields is changing dynamically, hence selenium test script is failing

Content

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.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!