- include85Regular Participant
- Posts : 27
Join date : 2011-09-22
Age : 39
Location : Italia, Sicily
Insert jQuery in selenium test
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
I am Italian and use selenium RC for some months.
How can I put jQuery in a selenium test?
Thanks in advance.
GC
- include85Regular Participant
- Posts : 27
Join date : 2011-09-22
Age : 39
Location : Italia, Sicily
Re: Insert jQuery in selenium test
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);
- freeskyAmateur
- Posts : 72
Join date : 2011-04-13
Re: Insert jQuery in selenium test
Fri Sep 23, 2011 9:30 am
Thank you for your share!
Permissions in this forum:
You cannot reply to topics in this forum