Home > Selenium > Get id of div from its class name using JavaScript for Selenium IDE

Get id of div from its class name using JavaScript for Selenium IDE

Get id of div from its class name using JavaScript for Selenium IDE
<tr>
<td>storeEval</td>
<td>window.document.getElementsByClassName(‘classname’)[0].id</td>
<td>idname</td>
</tr>
<tr>
<td>echo</td>
<td>${idname}</td>
<td></td>
</tr>
Advertisements
Categories: Selenium Tags:
  1. azizmudgal
    October 19, 2012 at 4:02 pm

    This is a fantastic blog i ever read

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: