JavaScript Executor


Is an interface which provides mechanism to execute Javascript through selenium driver. It provides “executescript” & "executeAsyncScript" methods, to run JavaScript in the context of the currently selected frame or window. 

Syntax

1.Example Code :


2. Example to simulate click action for the button 


3. Example JS executor to invoke functions

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.