Tagged: automate

selenium 0

Selenium and xpath — locate an element using id attribute

Issue : Locate the fol­low­ing ele­ment using its ID. <div id=“globalContainer”> <div> … </div> </div> Res­o­lu­tion : You can write the fol­low­ing query in the browser con­sole. $x(//div[@id=“globalContainer”]) Fur­ther Read­ing xPath loca­tor Prac­ti­cal Examples

Gnu-bash-logo 0

How to create scripts in terminal

Fol­low three sim­ple steps to auto­mate your ter­mi­nal. Cre­ate a script Set the per­mis­sions Exe­cute the script Cre­ate a script test.sh $vi test.sh ls –la echo ‘Hello Bash!’ Set the per­mis­sions $sudo chmod 777…