Home > Selenium > How to solve the link has target ‘_blank’, which is not supported in Selenium

How to solve the link has target ‘_blank’, which is not supported in Selenium

For the example,

<a target=”_blank” id=”verify_email” href=”https://thiyagarajan.wordpress.com/users/verify/1341484215″>Verify your email</a>

So We can use following,

<tr>
<td>storeAttribute</td>
<td>//a[@id=’verify_email’]/@href</td>
<td>href</td>
</tr>
<tr>
<td>echo</td> ‘ this is only optional to see the link
<td>${href}</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${href}</td>
<td></td>
</tr>

 

Advertisements
Categories: Selenium Tags: ,
  1. July 1, 2013 at 8:39 pm

    The recipe makes twelve and this is enough to serve four people.
    One primary reason for the popularity of wine in the new age is its new image as moderating health drink with mild intoxicating properties and also its world wide affordability and availability.
    You can place the pre-packaged cheese in a strong freezer bag, squeeze all the air out and plop directly into freezer.

  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: