You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_TableElementKeywords._get_table_cell performance is very poor when finding out multiple cell values from the same table. A very basic result caching mechanism improved the situation on my clients test by 30%.
I'm willing to work on a patch to improve the situation on next week.
Yes , I m also facing same problem so .. have you go any solution on this? I need it urgently solution on this for my project .. wanted to check sorted records from table.
Get Table Cell is particularly bad with Internet Explorer.
Two ways to workaround the performance issue is to
Reduce calls by working closely with WebDriver
Use Execute JavaScript
JavaScript is time-consuming and hard to write (especially in a cross-browser way), but it is definitely the fastest. I don't have an example because I have never gone that route.
Here's an example showing how to use a Selenium2Library locator and get a collection of WebElements you can work with. Particularly, this logs the text of all the first cells in the keyword table. This is much faster than Get Table Cell, but is definitely ugly.
*** Settings ***
Library Selenium2Library
*** Variables ***
${URL} http://rtomac.github.com/robotframework-selenium2library/doc/Selenium2Library.html
*** Test Cases ***
Cell Test
Open Browser ${URL} ie
${se2lib}= Get Library Instance Selenium2Library
@{cells}= BuiltIn.Call Method ${se2lib._element_finder} find ${se2lib._current_browser()} xpath=html/body/table[@class='keywords'][2]/tbody/tr/td[1]
: FOR ${webelement} IN @{cells}
\ Log ${webelement.text}
This is not browser specific issue. But I tried according to mentioned code
for Xpath & made code with Get Text Keyword, it improves a lot & get solved
issue.
Get Table Cell is particularly bad with Internet Explorer.
Two ways to workaround the performance issue is to
Reduce calls by working closely with WebDriver
Use Execute JavaScript
JavaScript is time-consuming and hard to write (especially in a
cross-browser way), but it is definitely the fastest. I don't have an
example because I have never gone that route.
Here's an example showing how to use a Selenium2Library locator and get a
collection of WebElements you can work with. Particularly, this logs the
text of all the first cells in the keyword table. This is much faster than
Get Table Cell, but is definitely ugly.
*** Test Cases ***
Cell Test
Open Browser ${URL} ie
${se2lib}= Get Library Instance Selenium2Library
@{cells}= BuiltIn.Call Method ${se2lib._element_finder} find ${se2lib._current_browser()} xpath=html/body/table[@Class='keywords'][2]/tbody/tr/td[1]
: FOR ${webelement} IN @{cells}
\ Log ${webelement.text}
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/141#issuecomment-15194037
.
------------------------------ Warm Regards,
GAURAV S. DEORE.
There has not been activity for this issue for long time and we are planning to close the old issues if they are not anymore valid ones. If you feel that this is still valid issue, could you send an update. If update is not received in a month, we will assume that this is not anymore an issues and we will close this issue.
Activity
Gurud commentedon Mar 20, 2013
Yes , I m also facing same problem so .. have you go any solution on this? I need it urgently solution on this for my project .. wanted to check sorted records from table.
Please Send me if you have solution on this - gaurav.sp@gmail.com
ombre42 commentedon Mar 20, 2013
Get Table Cell is particularly bad with Internet Explorer.
Two ways to workaround the performance issue is to
JavaScript is time-consuming and hard to write (especially in a cross-browser way), but it is definitely the fastest. I don't have an example because I have never gone that route.
Here's an example showing how to use a Selenium2Library locator and get a collection of WebElements you can work with. Particularly, this logs the text of all the first cells in the keyword table. This is much faster than Get Table Cell, but is definitely ugly.
Gurud commentedon Mar 24, 2013
Thanks Kevin!
This is not browser specific issue. But I tried according to mentioned code
for Xpath & made code with Get Text Keyword, it improves a lot & get solved
issue.
Thanks a lot,
Gaurav
On Wed, Mar 20, 2013 at 11:52 PM, Kevin Ormbrek notifications@github.life-white.ukwrote:
------------------------------
Warm Regards,
GAURAV S. DEORE.
aaltat commentedon Jun 8, 2016
There has not been activity for this issue for long time and we are planning to close the old issues if they are not anymore valid ones. If you feel that this is still valid issue, could you send an update. If update is not received in a month, we will assume that this is not anymore an issues and we will close this issue.