Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #16942

how to get the element by text (innerHTML)

Newsgroups comp.lang.javascript
Date 2012-10-29 01:52 -0700
Message-ID <fdd894aa-524c-475c-b0be-9ee93c7f461a@googlegroups.com> (permalink)
Subject how to get the element by text (innerHTML)
From gaurangnshah@gmail.com

Show all headers | View raw


Hi guys, 

I am working as automation engineer. and I have a weird requirement where i need to click on the element by it's innerHTML. 

Now this innnerHTML may present multiple times in the page but only one would be visible at a time others would be hidden. I have to click on the visible text. 

Any idea how can i achieve this ? 

Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

how to get the element by text (innerHTML) gaurangnshah@gmail.com - 2012-10-29 01:52 -0700
  Re: how to get the element by text (innerHTML) "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-10-29 11:23 +0200

csiph-web