Unable to click SAVE buttton in naukri.com -> upload resume
Unable to click SAVE buttton in naukri.com -> upload resume
M
Posted on 18/09/2016
Steps: login to naukri with username/password-> click on Attched Resume link (left pane) -> click on Update New Resume link ->opens window with browse/save/cancel Able to send filepath into 'browse textbox' using sendkeys. But unable to click on SAVE.
Used tried javaScript for cancel button , it works . But javascript with save is not successful My java script command is as below: JavascriptExecutor js = (JavascriptExecutor)driver; Object res= js.executeScript("clearDefaultTextCV('copyPaste');truncateTextCv();if(gbi('upUrl').value != 'false' || gbi('copyPaste').value.length>0){gbi('editForm').submit();}");
The firepath for both save and cancel is : <div class="blueBut1 bdrtpDotGry"> <button class="w85bt fl" onclick="clearDefaultTextCV('copyPaste');truncateTextCv();if(gbi('upUrl').value != 'false' || gbi('copyPaste').value.length>0){gbi('editForm').submit();}" type="button"> // SAVE BUTTON <bdo dir="ltr"> <a id="lastuploadLayer" class="fl mt10 ml8" rel="last" onclick="hidemodal();gbi('attachCVMsg').style.display='none';" href="javascript:void(0);"> //CANCEL BUTTON <strong>Cancel</strong> </a> </bdo> </div>