WTAsk : this.click with xpath not working

18 views
Skip to first unread message

Stephen Sanjaya

unread,
Jun 21, 2016, 11:34:45 PM6/21/16
to CasperJS
as subject, i am new in unit testing , i'am usiing Casper js because simple API Documentation,

now i'am trying to login angular site, 

i'am trying with this

  --xpath 
  var button = '/html/body/div[2]/div/form/button';
   
  try with,  this.click(button); , unlikely nothing happened , i'am also try with this.click.mouse and the result is same, button not handdle to click, 
  and using this method  this.page.sendEvent("keypress", this.page.event.key.Enter); , an same as before  nothing happen

Ken

unread,
May 25, 2017, 8:09:05 PM5/25/17
to CasperJS
CasperJS should work with Angular I think, don't see open issues at GitHub issues page. If you try to wait for selector or explicitly wait for some time before interacting with it, will it work for you?
Reply all
Reply to author
Forward
0 new messages