in reply to Selenium with PhantomJS not able to click links correctly

Hi there,

You can start with some basic debugging, instead of just using ->click(), first test that each find_element succeeds or not. Likely that will reveal the problem.

  • Comment on Re: Selenium with PhantomJS not able to click links correctly

Replies are listed 'Best First'.
Re^2: Selenium with PhantomJS not able to click links correctly
by jaypal (Beadle) on Jul 19, 2014 at 23:54 UTC

    Thanks Loops. The debugging didn't help as they correctly identified each service and it's corresponding buttons. However, I added a longer pause time before each trigger. That does seem to work, however, I feel the benefit of using phantomJS to speedup testing is getting overshadowed by these pauses.

    Thank you for your response and help though.

      That does seem to work, however, I feel the benefit of using phantomJS to speedup testing is getting overshadowed by these pauses.

      That is funny :) The reason to use phantomJS is so you get free browser with javascript support ... you know the difficult stuff ... there is nothing you can do if the javascript does network communication or other stuff -- it will take as long as it will take, at least you didn't have to reverse engineer the javascript