on-internet
← Community

Expanding and Collapsing using selenium through crawling in java with [+] and [-]

Stack Overflow ·

I am trying to do expand and collapse with [+] and [-] in a website using selenium. My html code is <div onclick="abc_Click(this);" class="liCollapsed"> Here abc_Click(this) is the Onclick event which i am trying to click. The code I am using is By.xpath("[@onclick='abc_Click(this)']")).click(); But the [+] is not clicked. Please help me on this.

Comments

Sign in or sign up to comment and upvote.

No comments yet.