RE: Clicking a LinkValue in a Child Window and Passing Value to parent window.

I have a web application where i have a image, when i click on that image a new pop up window opens, which shows list of values. There is a Javascript executed when i click on any value.When i click on any value that value is passed to the parent window in a text field.
How can i achieve this through Selenium. Your help will be appreciated. Below the HTML of the link .

<a href=”javascript:passBack(v[1], v2[1]);>583 – WALNUT DISTRIBUTION CENTER</a>

rehanshahid Train Asked on November 3, 2015 in Selenium WebDriver.
Add Comment
4 Answers

Hi,

I am able to switch to child window but not able to click on the javascript link in child window.

 

There is a passback javascript which is executed when i click on the link in child window. Below is the HTML of link.

<a href=”javascript:passBack(v[1], v2[1]);>583 – WALNUT DISTRIBUTION CENTER</a>

is there any way i can click on that link through selenium.

Train Answered on November 5, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.