If the script has a return value (i.e. if the script contains a return
statement), then the following steps will be taken:
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a397e4d5-efc5-4e03-b442-d86a97f56c7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/lN2Ld3oN2ws/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/f3284636-0689-445f-84b7-f60b28647065%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/f3284636-0689-445f-84b7-f60b28647065%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAFc8mSUEmoKZ4tN0HOk-wiVrMknhOGpWfojPo-BiqZ_X3OzwZw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Looks like it's a map. Have you tried casting it to a map and see what happens ?
On Sat, Mar 17, 2018, 18:53 Debanjan Bhattacharjee <debanjan.bhattacharjee@ariatech.in> wrote:
Hello Everyone,--Can someone help me to decode the type of the data returned back from executeScript() as below ?Using Selenium-Java Clients when I retrieve some performance statistics from Chrome Development Tools as follows :System.out.println(((JavascriptExecutor)driver).executeScript(scriptToExecute));I am receiving the following data :[{redirectCount=0, encodedBodySize=64518, unloadEventEnd=0, responseEnd=4247.699999992619, domainLookupEnd=2852.7999999932945, unloadEventStart=0, domContentLoadedEventStart=4630.699999994249, type=navigate, decodedBodySize=215670, duration=5709.000000002561, redirectStart=0, connectEnd=3203.5000000032596, toJSON={}, requestStart=3205.499999996391, initiatorType=beacon}]The JavaDocs of executeScript() mentions :If the script has a return value (i.e. if the script contains a
return
statement), then the following steps will be taken:
- For an HTML element, this method returns a WebElement
- For a decimal, a Double is returned
- For a non-decimal number, a Long is returned
- For a boolean, a Boolean is returned
- For all other cases, a String is returned.
- For an array, return a List<Object> with each object following the rules above. We support nested lists.
- For a map, return a Map<String, Object> with values following the rules above.
- Unless the value is null or there is no return value, in which null is returned
Any suggestions/pointer will be helpful.Thanks and RegardsDebanjan-B
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a397e4d5-efc5-4e03-b442-d86a97f56c7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Thanks & Regards
Krishnan Mahadevan"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/My Technical Scribbings @ http://rationaleemotions.wordpress.com/
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/lN2Ld3oN2ws/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLnvi5v1ihGWiWD1mZ-Yo%2B0MmhVbtD2bY9J%2BzA0%3DELasig%40mail.gmail.com.
Hello,@krishnan Thanks for the reply. I tried to tread the string as a 'Map' but it won't. Observe the string ' toJSON={} '. There are may such in the actual string.Regards-Dev
On Sat, Mar 17, 2018 at 8:10 PM, ⇜Krishnan Mahadevan⇝ <krishnan.ma...@gmail.com> wrote:
Looks like it's a map. Have you tried casting it to a map and see what happens ?
On Sat, Mar 17, 2018, 18:53 Debanjan Bhattacharjee <debanjan.bh...@ariatech.in> wrote:
Hello Everyone,--Can someone help me to decode the type of the data returned back from executeScript() as below ?Using Selenium-Java Clients when I retrieve some performance statistics from Chrome Development Tools as follows :System.out.println(((JavascriptExecutor)driver).executeScript(scriptToExecute));I am receiving the following data :[{redirectCount=0, encodedBodySize=64518, unloadEventEnd=0, responseEnd=4247.699999992619, domainLookupEnd=2852.7999999932945, unloadEventStart=0, domContentLoadedEventStart=4630.699999994249, type=navigate, decodedBodySize=215670, duration=5709.000000002561, redirectStart=0, connectEnd=3203.5000000032596, toJSON={}, requestStart=3205.499999996391, initiatorType=beacon}]The JavaDocs of executeScript() mentions :If the script has a return value (i.e. if the script contains a
return
statement), then the following steps will be taken:
- For an HTML element, this method returns a WebElement
- For a decimal, a Double is returned
- For a non-decimal number, a Long is returned
- For a boolean, a Boolean is returned
- For all other cases, a String is returned.
- For an array, return a List<Object> with each object following the rules above. We support nested lists.
- For a map, return a Map<String, Object> with values following the rules above.
- Unless the value is null or there is no return value, in which null is returned
Any suggestions/pointer will be helpful.Thanks and RegardsDebanjan-B
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a397e4d5-efc5-4e03-b442-d86a97f56c7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
----Thanks & Regards
Krishnan Mahadevan"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/My Technical Scribbings @ http://rationaleemotions.wordpress.com/
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/lN2Ld3oN2ws/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
When you assign it to a Object variable and try printing it's type via get class() what do you see ?
The "[" indicates it's perhaps an array or a list and the "{" indicates it's a map.
To unsubscribe from this group and all its topics, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/f3284636-0689-445f-84b7-f60b28647065%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAFc8mSUEmoKZ4tN0HOk-wiVrMknhOGpWfojPo-BiqZ_X3OzwZw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--Thanks & Regards
Krishnan Mahadevan"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/My Technical Scribbings @ http://rationaleemotions.wordpress.com/
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/lN2Ld3oN2ws/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLnotmyOtX1pq0%3DfAPHFn1kkCvsRyJf2-bqht8bBX5W2oA%40mail.gmail.com.