1.

Return Javascript Execution Result?

Answer»

We need to return from your javascript snippet to return a VALUE, so: browser.executeScript ("DOCUMENT. title"); will return NULL, but: browser.executeScript ("return document. title"); will return the title of the document.

We need to return from your javascript snippet to return a value, so: browser.executeScript ("document. title"); will return null, but: browser.executeScript ("return document. title"); will return the title of the document.



Discussion

No Comment Found