fix(accessibility): improve output for long elements
fix(accessibility): improve output for long elements

Instead of just printing the first N characters of the element's template,
print the first and last N/2.

See #1854

MSakamaki/protractor,MSakamaki/protractor,NickTomlin/protractor,xtrepo/protractor,christian-bromann/protractor,Droogans/protractor,Everworks/protractor,xaka/protractor,cnishina/protractor,lmacneil/protractor,bnicart/protractor,AbraaoAlves/protractor,JLLeitschuh/protractor,angular/protractor,likaiwalkman/protractor,nkhuyu/protractor,marleitao/protractor,jive/protractor,bnicart/protractor,manoj9788/protractor,AbraaoAlves/protractor,HichemBenChaaben/protractor,jcapozzi/protractor,hankduan/protractor,telefonicaid/protractor,mstrutt/protractor,juliemr/protractor,samccone/protractor,hsleung95/protractor,xaka/protractor,faceleg/protractor,chinnaamara/protractor,onshape/protractor,fox2081/protractor,benaston/protractor,mgiambalvo/protractor,sirwalt/protractor,NicoPennec/protractor,tiru67gmailcom/protractor,nkhuyu/protractor,gad2103/protractor,fancyhejianyang/protractor-operation,alfonso-presa/protractor,jlin412/protractor,modernfidelity/protractor,igniteram/protractor,lmacneil/protractor,JLLeitschuh/protractor,hsleung95/protractor,mgiambalvo/protractor,panuhorsmalahti/protractor,jlin412/protractor,christian-bromann/protractor,cnishina/protractor,blabno/protractor,NicoPennec/protractor,kongx73/protractor,skyFi/protractor,cnishina/protractor,paraplexed/protractor,GistIcon/protractor,juliemr/protractor,joshmgrant/protractor,karthiktv006/protractor,paraplexed/protractor,igniteram/protractor,Everworks/protractor,onshape/protractor,Everworks/protractor,mbrukman/protractor,blabno/protractor,stalniy/protractor,surfjedi/protractor,chinnaamara/protractor,igniteram/protractor,paraplexed/protractor,rsmith31415/protractor,sirwalt/protractor,sjelin/protractor,szikszail/protractor,jlin412/protractor,benaston/protractor,surfjedi/protractor,SpiritIT/protractor,faceleg/protractor,hdemon/protractor,SpiritIT/protractor,kongx73/protractor,tanbo800/protractor,rsmith31415/protractor,szikszail/protractor,fancyhejianyang/protractor-operation,dylanb/protractor,jlin412/protractor,alfonso-presa/protractor,bnicart/protractor,mbrukman/protractor,tboyce/protractor,dylanb/protractor,jphustman/protractor,eduardomb/protractor,karthiktv006/protractor,vliloia/protractor,panuhorsmalahti/protractor,telefonicaid/protractor,NickTomlin/protractor,gad2103/protractor,chinnaamara/protractor,elgalu/protractor,jcapozzi/protractor,BernardoSilva/protractor,fox2081/protractor,juliemr/protractor,marleitao/protractor,HichemBenChaaben/protractor,surfjedi/protractor,xaka/protractor,eduardomb/protractor,fancyhejianyang/protractor-operation,gad2103/protractor,stalniy/protractor,vnaraper/Protractor-test,nwolverson/protractor,jive/protractor,nkhuyu/protractor,joshmgrant/protractor,elgalu/protractor,spirosikmd/protractor,onshape/protractor,hdemon/protractor,benaston/protractor,donaldpipowitch/protractor,jcapozzi/protractor,GistIcon/protractor,mgiambalvo/protractor,karthiktv006/protractor,tjabell/protractor,kongx73/protractor,hankduan/protractor,alecxe/protractor,likaiwalkman/protractor,NickTomlin/protractor,sirwalt/protractor,hsleung95/protractor,onshape/protractor,alecxe/protractor,modernfidelity/protractor,sjelin/protractor,angular/protractor,marleitao/protractor,modernfidelity/protractor,gempesaw/protractor,sirwalt/protractor,vnaraper/Protractor-test,Everworks/protractor,manoj9788/protractor,HichemBenChaaben/protractor,AbraaoAlves/protractor,vliloia/protractor,mgiambalvo/protractor,faceleg/protractor,donaldpipowitch/protractor,nwolverson/protractor,angular/protractor,NicoPennec/protractor,xtrepo/protractor,mstrutt/protractor,cnishina/protractor,mbrukman/protractor,Droogans/protractor,marleitao/protractor,angular/protractor,tjabell/protractor,jcapozzi/protractor,samccone/protractor,vnaraper/Protractor-test,manoj9788/protractor,JLLeitschuh/protractor,sjelin/protractor,NickTomlin/protractor,juliemr/protractor,spirosikmd/protractor,elgalu/protractor,alecxe/protractor,nwolverson/protractor,samccone/protractor,hankduan/protractor,MSakamaki/protractor,dylanb/protractor,tanbo800/protractor,manoj9788/protractor,telefonicaid/protractor,blabno/protractor,tboyce/protractor,szikszail/protractor,tjabell/protractor,panuhorsmalahti/protractor,gempesaw/protractor,igniteram/protractor,BernardoSilva/protractor,tiru67gmailcom/protractor,likaiwalkman/protractor,christian-bromann/protractor,BernardoSilva/protractor,skyFi/protractor,fancyhejianyang/protractor-operation,gempesaw/protractor,GistIcon/protractor,eduardomb/protractor,alfonso-presa/protractor,mstrutt/protractor,stalniy/protractor,tanbo800/protractor,vliloia/protractor,tboyce/protractor,donaldpipowitch/protractor,jphustman/protractor,jphustman/protractor,lmacneil/protractor,rsmith31415/protractor,Droogans/protractor,skyFi/protractor,hdemon/protractor,xaka/protractor,sjelin/protractor,xtrepo/protractor,joshmgrant/protractor,fox2081/protractor,SpiritIT/protractor,spirosikmd/protractor,tiru67gmailcom/protractor,jive/protractor