tag:blogger.com,1999:blog-3302102753324425376.post937773759110230521..comments2023-12-21T04:36:53.782-08:00Comments on 51 Elliot: Selenium IDE Sideflow Update 2Darrenhttp://www.blogger.com/profile/00230771763285373052noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-3302102753324425376.post-50443833272558338222015-03-26T09:14:35.152-07:002015-03-26T09:14:35.152-07:00Hi Darren,
I'm not able to access to name va...Hi Darren, <br /><br />I'm not able to access to name value on first element.<br /><br />1) I've tried the line you suggested:<br /><br />storedVars.myCollection[0].name<br /><br />RESULT:<br />"storedVars.myCollection[0].name"<br /><br />2) I've tried also with this:<br />javascript{storedVars['nameQuoteCollection'][0]}<br /><br />RESULT:<br />"{name: 'darren', status: 'groovy'}.name"<br /><br />Could you help me please?<br /><br />Thanks in advanceAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3302102753324425376.post-29500428088636824802014-11-21T06:54:13.524-08:002014-11-21T06:54:13.524-08:00Darren,
So we are not ready to use web driver so s...Darren,<br />So we are not ready to use web driver so still using selenium-rc. I have been working with your selenium-ide flow control so i can do if...but I want to run my tests via seleniumHQ pugin in jenkins. This does not recognize any of the flow control statements. I can't seem to find the original flow control plugin for selenium-rc...can you help me find a verion of it so i can try to use this...we will probably move to web driver eventually, but for our basic tests, we are fine with RC...can you help me with this?<br />thanks<br />danDanohttps://www.blogger.com/profile/10150900120471857968noreply@blogger.comtag:blogger.com,1999:blog-3302102753324425376.post-49899615753230677162014-06-05T07:46:35.244-07:002014-06-05T07:46:35.244-07:00Thx for the answer.
echo | storedVars.myCollectio...Thx for the answer.<br /><br />echo | storedVars.myCollection[0].name | <br /><br />only return <br />"storedVars.myCollection[0].name" as text.<br /><br />I've tried other ways, but it always return a NULL value. <br /><br />Check:<br />http://screencast.com/t/nM7FzWd4YRv<br /><br />Im not a Java programer, so maybe I missing something basic.<br /><br />RegardsAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3302102753324425376.post-5913208116528615032014-06-04T22:08:42.792-07:002014-06-04T22:08:42.792-07:00@Anonymous, try Object.keys
@Franco, the push com...@Anonymous, try Object.keys<br /><br />@Franco, the push command will just put things (objects, strings, etc) in an Array and to access them just use array indexes 0-n. for example echo | storedVars.myCollection[0].name | would print 'darren'Darrenhttps://www.blogger.com/profile/00230771763285373052noreply@blogger.comtag:blogger.com,1999:blog-3302102753324425376.post-51442606931740017012014-06-04T05:33:24.144-07:002014-06-04T05:33:24.144-07:00Hey Darren, thx for the guide. I wanted to ask how...Hey Darren, thx for the guide. I wanted to ask how do i access an element on the array, like the name only? <br /><br />Thx in advanceAnonymoushttps://www.blogger.com/profile/05048042840953189629noreply@blogger.comtag:blogger.com,1999:blog-3302102753324425376.post-46604092896282924782014-03-10T23:26:21.750-07:002014-03-10T23:26:21.750-07:00Thanks Darren!Thanks Darren!Santerinoreply@blogger.comtag:blogger.com,1999:blog-3302102753324425376.post-37204834875171274292014-03-10T14:31:42.659-07:002014-03-10T14:31:42.659-07:00Hi Santeri, your problem has nothing to do with fl...Hi Santeri, your problem has nothing to do with flow control, or spaces. The javascript you're using as a conditional isn't valid, so you're getting a syntax error. Try this:<br /><br />gotoIf | storedVars['myVariable'] == "This text" | someTargetDarrenhttps://www.blogger.com/profile/00230771763285373052noreply@blogger.comtag:blogger.com,1999:blog-3302102753324425376.post-90641802864719546232014-03-10T01:34:31.680-07:002014-03-10T01:34:31.680-07:00Hey!
I see that flow control doesn't handle s...Hey!<br /><br />I see that flow control doesn't handle spaces.<br /><br />I need to get to specified label if specified variable contains specified text.<br /><br />gotoIf | ${Variable} == "This text with space" | Thislabel<br /><br />([error] Unexpected Exception: SyntaxError: missing ; before statement)<br /><br />What can I do to make it work?Santerinoreply@blogger.comtag:blogger.com,1999:blog-3302102753324425376.post-53187202656816772982013-09-24T11:10:01.320-07:002013-09-24T11:10:01.320-07:00Darren,
What would the syntax be if you only want ...Darren,<br />What would the syntax be if you only want to pull part of the object, such as the name?<br /><br /> storeEval | storedVars.mycollection[${x}-1].name | temp<br /><br />This returns null.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3302102753324425376.post-76494289379156265352013-09-24T11:08:31.550-07:002013-09-24T11:08:31.550-07:00Darren,
If you only wanted to pull part of the obj...Darren,<br />If you only wanted to pull part of the object, such as just the names, what would the syntax be?<br /><br />storeEval | storedVars.mycollection[${x}-1].name | temp<br /><br />This returns null.Anonymousnoreply@blogger.com