Thread

Skip Navigation LinksForums > SpiraTest Forums > SpiraTest Issues & Questi... > Is it possible to Assert ...

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

Tuesday, July 14, 2015
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
Adam SAdam S
re: Yong Liang Ko on Tuesday, July 14, 2015
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

Yong Liang KoYong Liang Ko
re: Adam S on Tuesday, July 14, 2015
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.
Elise B.Elise B.
re: Yong Liang Ko on Tuesday, July 14, 2015
Monday, July 20, 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.
Yong Liang KoYong Liang Ko
re: Elise B. on Monday, July 20, 2015
Monday, July 20, 2015
Thanks. I will try :)
Statistics
  • Started: 7/14/2015
  • Last Reply: 7/20/2015
  • Replies: 4
  • Views: 347
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.