Is it possible to Assert if a given SPAN object is expanded or collapsed?

Tuesday, July 14, 2015
Avatar
Is it possible to Assert if a given SPAN object is expanded or collapsed? Looks like there is no way of doing it.

By the way, there is no way I could add my screenshot here, the "Add Image" in tool bar doesn't work. When I pressed on it, it just include a small icon on this text.

4 Replies
Tuesday, July 14, 2015
Avatar
re: takayuryou Tuesday, July 14, 2015

Hi

Could you please send us a help desk ticket with a screenshot, we'd be happy to help you out?

Regards

Adam

Wednesday, July 15, 2015
Avatar
re: inflectra.david Tuesday, July 14, 2015
Ok I already create a ticket regarding this issue. So, this thread can be removed. However, you might need to fix the "Add Image" issue I had mentioned. Thanks.
Monday, July 20, 2015
Avatar
re: takayuryou Tuesday, July 14, 2015
Here is the reply that was given to the Help Desk ticket:

In this particular case it can be done via analysis of the class property of an object. It has "expand" when SPAN is expanded.

var cls = SeS('SPAN').DoDOMGetAttribute('class');

or

var cls = SeS('SPAN').GetClass();

Test for presence of "expand":

class.indexOf("expand") != -1

About the Add Image icon, clicking it should pop up a dialog box where you paste in the URL of the image. If it does not do this, check your browser settings. You may be blocking pop-ups.
Tuesday, July 21, 2015
Avatar
re: inflectra.kat Monday, July 20, 2015
Thanks. I will try :)

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Tuesday, July 14, 2015
  • Last Reply: Tuesday, July 21, 2015
  • Replies: 4
  • Views: 2842