Share
Go down
avatar
include85
Regular Participant
Regular Participant
Posts : 27
Join date : 2011-09-22
Age : 32
Location : Italia, Sicily

Insert jQuery in selenium test

on Thu Sep 22, 2011 2:29 pm
Hello!
I am Italian and use selenium RC for some months.

How can I put jQuery in a selenium test?

Thanks in advance.

GC
avatar
include85
Regular Participant
Regular Participant
Posts : 27
Join date : 2011-09-22
Age : 32
Location : Italia, Sicily

Re: Insert jQuery in selenium test

on Thu Sep 22, 2011 8:44 pm
This is the solution:
Code:
String scrollGrid= "var window = selenium.browserbot.getUserWindow(); " +
        "var maxHeight = parseInt(window.jQuery('.ui-jqgrid-bdiv').children().css('height')); " +
        "window.gridSplit.bDiv.scrollTop = maxHeight; " +
        "window.gridSplit.scrollGridSelenium(); ";
       
        session().getEval(scrollGrid);

Wink
freesky
Amateur
Amateur
Posts : 72
Join date : 2011-04-13

Re: Insert jQuery in selenium test

on Fri Sep 23, 2011 9:30 am
Thank you for your share!
Sponsored content

Re: Insert jQuery in selenium test

Back to top
Permissions in this forum:
You cannot reply to topics in this forum