SeleniumLibrary icon indicating copy to clipboard operation
SeleniumLibrary copied to clipboard

Get Text in Sel2Lib please

Open hemakannan opened this issue 14 years ago • 17 comments

Can we pls bring back this function/keyword.. Its a total awesome keyword that definitely should be a part of Sel2Lib.

hemakannan avatar Aug 23 '12 03:08 hemakannan

On 08/22/2012 11:08 PM, hemakannan wrote:

Can we pls bring back this function/keyword.. Its a total awesome keyword that definitely should be a part of Sel2Lib.


Reply to this email directly or view it on GitHub https://github.com/rtomac/robotframework-selenium2library/issues/94.

This change has been commited and will be in the next release. If you require this change sooner you can either grab the main branch or cherry pick out the commit.

Ed

emanlove avatar Aug 23 '12 03:08 emanlove

Yay ! Thank you so much.... I hope the add location strategy is also brought back into sel2lib. Jeremy said he was going to look at it (https://github.com/rtomac/robotframework-selenium2library/issues/77). If that also is brought in, there is nothing holding us back to port over to Sel2Lib. Crossing my fingers. Thank you so much guys for supporting this awesome framework !

hemakannan avatar Aug 23 '12 03:08 hemakannan

Oh BTW when will the next release be. I can wait until then.

hemakannan avatar Aug 23 '12 03:08 hemakannan

On 08/22/2012 11:29 PM, hemakannan wrote:

Oh BTW when will the next release be. I can wait until then.


Reply to this email directly or view it on GitHub https://github.com/rtomac/robotframework-selenium2library/issues/94#issuecomment-7959063.

Hopefully in the next couple of weeks. There was an issue with Selenium 2.25.0 which was causing the internal tests to fail. That has been taken care of but I did notice one more issue with a drag and drop test. So I need to look into that when I get some time.

emanlove avatar Aug 23 '12 03:08 emanlove

ok, great. Thanks so much. I will close this ticket.

hemakannan avatar Aug 23 '12 03:08 hemakannan

Is selenium2library with "getText" keyword released??

PriyaAn avatar Sep 26 '12 12:09 PriyaAn

Is selenium2library with "getText" keyword released??

It is within the main branch but has not yet been released. We are trying and I would like to see us cut a release by Friday, Sept 28, 2012. In the mean time you can grab the source from https://github.com/rtomac/robotframework-selenium2library

git clone git://github.com/rtomac/robotframework-selenium2library.git rf-s2l

emanlove avatar Sep 26 '12 12:09 emanlove

Thank You So Much...

PriyaAn avatar Sep 27 '12 08:09 PriyaAn

Is it released on 28th September?

PriyaAn avatar Oct 01 '12 06:10 PriyaAn

No its has not yet been released. We will announce the release on robotframework mailing list.

emanlove avatar Oct 01 '12 23:10 emanlove

not sure if anyone notice issue #115. get text does not throw exception if element is not found

ombre42 avatar Oct 02 '12 03:10 ombre42

Looking into this now. One issues I am seeing is that we are inconsistent with our error reporting when an element is not located. We have

raise ValueError("Element '%s' not found." % (locator))

raise AssertionError("ERROR: Element %s not found." % (locator))

raise ValueError("Element locator '" + locator + "' did not match any elements.")

I think the last is the best solution as it captures most instances of unlocatable elements. Also this issues also effects 'Element Should Contain' for which looking at the code will present a similar issue if an element is not found.

emanlove avatar Oct 02 '12 14:10 emanlove

'Get Text' and 'Element Should Contain' now throws exception if element is not found. See #127.

emanlove avatar Oct 02 '12 15:10 emanlove

Is there any update regarding getText functionality? Is it possible to create our own keyword for getText? If yes, Please share the procedure.

shrutishrivastava avatar Oct 22 '12 06:10 shrutishrivastava

Just came across this thread while searching solution for my issue. I'm using Get Text in Robot. I can say behaviour is different of Selenium2Library. I get my text in SeleniumLibrary but not in Selenium2Library. Any input on this.

Arpitha10 avatar Mar 22 '16 06:03 Arpitha10

The underlying functionality of selenium RC, which SeleniumLibrary is using and selenium webdriver, which Selenium2Library is using may be different.

Because this issue was requested for a new keyword and it seems that you are having difficulty to get the text with the keyword. They are different things and therefore would it be possible to open a new issue and explain your problem with better details.

aaltat avatar Mar 22 '16 06:03 aaltat

Sure. Please find it here .

https://github.com/robotframework/Selenium2Library/issues/588

Arpitha10 avatar Mar 22 '16 08:03 Arpitha10