selenium + javascript + cucumber

Hello Friend,
I iam stucked at a place where I am updating a div on click but the
link is not a anchor tag it;s just a li which contain a text and when a
user click on that tag a javascript function evoke and the div gets
updated. but I am not getting how do I write a cucumber scenario.

  • Some Text
  • Thanks for any help.