Reputation: 21
Is there a way to simulate a javascript forward in Panther within Symfony. Also, installed Firefox into Symfony.
The 2nd click line is crashing with the following error. The site is using a lot of javascript for weird redirects and button clicks.
ERROR: Reached error page: about:neterror?e=nssFailure&u=domainname.com
HTML link looks like this:
<a href="javascript:forward('MODEL/pages/addcar.jsp')">Add A Car</a>
Code:
$link = $client->findElement(WebDriverBy::linkText("Add A Car"));
$link->click();
Thanks everyone!
Upvotes: 1
Views: 22
Reputation: 21
I found my own solution.
$client->executeScript('javascript:forward("MODEL/pages/addcar.jsp")');
Upvotes: 0