`RunScript` command adds a script section or not?
See original GitHub issue💬 Questions and Help
Hey there I was reading a spec
of selenium commands and discovered run script
I starting to think if it any different from execute script
according to the doc it is.
c
Creates a new “script” tag in the body of the current test window, and adds the specified text into the body of the command. Beware that JS exceptions thrown in these script tags aren’t managed by Selenium, so you should probably wrap your script in try/catch blocks if there is any chance that the script will throw an exception.
But from what I see in the code is just the same as exec script
(I may be wrong), except not saving a returned value?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
RunScript command adds a script section or not? #9585
Creates a new "script" tag in the body of the current test window, and adds the specified text into the body of the...
Read more >How to run custom script in workflow run script block
The easy way to do this is to create a rest message in the ServiceNow and use it in the script section. Simple...
Read more >Running custom scripts during a build - Apple Developer
To add files or file lists to your script, click the Add button (+) in the appropriate section of your Run Script build...
Read more >RunScript | Altium Designer 21 User Manual | Documentation
Summary. This command is used to run a script within Altium Designer. Access. This command is accessed by choosing the File » Run...
Read more >npm-run-script
Description. This runs an arbitrary command from a package's "scripts" object. If no "command" is provided, it will list the available scripts.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see you are struggling a bit with the issue tracket, which we only use for actual issues and not questions 😃
However,
SeleneseCommand
is a type of command used in Selenium RC1, which is more than 10 years old and is not supported anymore. Some people still used as they have not been able to migrate, so that’s why you find those pieces of code in the code base.But it’s
execScript
notrunScript
which is a supported command in side files