ContributionsMost RecentMost LikesSolutionshow to get result from injected javascript Hello, I would like to inject javascript to check document.readyState so I do this: var readyState = page.contentDocument.Script.eval("return document.readyState;"); but readyState is null when I do this: var readyState = page.contentDocument.Script.eval("return 11;"); readyState is also null :( javascript inheritance hello, I have a problem with inheritance using javascript. I have the following code: file: MyFirst class A{ constructor(x){ this.x = x; } static getA(){ return this.x; } } file: MySecond var ms= require("MyFirst"); class B extends ms (ms.A doesn't work as well){ static getB(){ ms.A.getA(); } } module.exports.B = B; file: Test var ss = require("MySecond"); function firstTest(){ ss.B.getB(); } and I get this error: TypeError: class extends value [object Object] is not a function or null SolvedRe: How to extract value from xml response in script assertion thx for your answer it almost worked. like you said I was getting data from request so it should be def Envelope=new XmlSlurper().parseText(messageExchange.request.responseContent) def status = Envelope.Body.genXXYYZZ.return.test.status log.info status assert OK == status, "Status is not ok" :) How to extract value from xml response in script assertion Hi, After sendig a soap request I get this as my response: <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:genXXYYZZ xmlns:ns2="http://zzzzzzz.yyy.com/"> <return> <test> <status>OK</status> </test> </return> </ns2:genXXYYZZ> </S:Body> </S:Envelope> What I want to do is extract value of status in script assertion. I do this: - click add an assertion... - script -> script assertion and then def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def holder = groovyUtils.getXmlHolder( messageExchange.requestContent) holder.namespaces["ns2"] = 'http://zzzzzzz.yyy.com/'; def responseId = holder.getNodeValue("//ns2:status"); log.info(responseId); and every time I get this: INFO:null Solved