Wednesday, July 06, 2011

Selenium clicking links from Safari/Opera not working

There have been lots and lots of solutions proposed for this problem. Let me add mine to the list.

Here is what I was facing: the following (very simple) link click
$link->selenium->click("//td[5]/a/img");

works perfectly in Firefox, IE and Google Chrome but results in no action in Safari or Opera. No error is generated but no change to the website occurs.

After pulling my hair out for two days, I noticed that at the bottom of the Firefox window, the link that results was displayed.


So I changed the command to
$link->selenium->open("main.php?action=adm_overview&lang=de");

And voila!...it was exactly the same as clicking on the link.

If Firefox dos not display the link (for instance, if it displays the Javascript that will be called), then try to use a tool like Webscarb to intercept the outgoing message.

5 comments:

Anonymous said...

This solution worked for me.
A button click was not working for me in safari,when i opened the associated URL as u mentioned it worked.
Thanks

ninest123 said...

replica watches, kate spade outlet, louis vuitton outlet, prada outlet, ray ban sunglasses, oakley sunglasses, ralph lauren pas cher, replica watches, jordan shoes, oakley sunglasses, polo ralph lauren outlet, louboutin pas cher, longchamp pas cher, louboutin outlet, longchamp, tiffany jewelry, nike air max, uggs on sale, ugg boots, nike free, louboutin shoes, ray ban sunglasses, ugg boots, nike outlet, air jordan pas cher, louboutin, oakley sunglasses, cheap oakley sunglasses, christian louboutin outlet, louis vuitton, prada handbags, tory burch outlet, louis vuitton outlet, tiffany and co, burberry, nike roshe run, nike free, polo ralph lauren outlet, air max, longchamp outlet, sac longchamp, oakley sunglasses, michael kors, louis vuitton, chanel handbags, ray ban sunglasses, nike air max, louis vuitton, gucci outlet, longchamp outlet

ninest123 said...

michael kors, nike roshe, true religion outlet, timberland, nike blazer, north face, ugg boots, ugg boots, michael kors, mulberry, michael kors outlet, oakley pas cher, michael kors, burberry outlet online, hollister pas cher, nike free run uk, hermes, hogan, lululemon, hollister, coach outlet, sac guess, michael kors outlet, lacoste pas cher, tn pas cher, converse pas cher, michael kors outlet, michael kors outlet, true religion jeans, nike air max, vans pas cher, abercrombie and fitch, coach outlet, burberry, replica handbags, michael kors outlet, coach purses, nike air max, new balance pas cher, ralph lauren uk, vanessa bruno, true religion jeans, ray ban uk, north face, ray ban pas cher, true religion jeans, air force, nike air max, kate spade handbags, michael kors

ninest123 said...

bottega veneta, louboutin, insanity workout, wedding dresses, beats by dre, soccer shoes, timberland boots, nfl jerseys, hollister, hollister, gucci, baseball bats, herve leger, nike trainers, ray ban, instyler, asics running shoes, mac cosmetics, abercrombie and fitch, celine handbags, converse, p90x workout, mcm handbags, new balance, vans shoes, iphone cases, north face outlet, longchamp, reebok shoes, nike huarache, birkin bag, vans, mont blanc, nike air max, jimmy choo shoes, lululemon, nike roshe, north face outlet, oakley, chi flat iron, valentino shoes, ghd, babyliss, ralph lauren, nike air max, converse outlet, ferragamo shoes, soccer jerseys, hollister, giuseppe zanotti

ninest123 said...

wedding dresses, juicy couture outlet, swarovski, doudoune canada goose, moncler, canada goose uk, swarovski crystal, pandora jewelry, ugg,ugg australia,ugg italia, coach outlet, moncler, canada goose, canada goose outlet, supra shoes, karen millen, pandora charms, replica watches, louis vuitton, pandora jewelry, montre pas cher, canada goose outlet, bottes ugg, barbour, thomas sabo, juicy couture outlet, moncler, lancel, louis vuitton, canada goose, louis vuitton, moncler, moncler outlet, hollister, canada goose, ugg boots uk, toms shoes, barbour jackets, sac louis vuitton pas cher, canada goose, louis vuitton, pandora charms, links of london, moncler, ugg,uggs,uggs canada, moncler, marc jacobs, ugg pas cher, moncler

  • Book reviews