You can translate the question and the replies:

How to execute Javascript in ITPilot

Hi I am working with ItPilot and want to know how to execute javascript and select particular frame and get all the data of that page.
user
16-08-2018 12:00:26 -0400

3 Answers

Hi, In order to select a frame, you need to use findFrameByXXX, by id, src, or position, and you implement this by appending it to a sequence in a sequence component. See the NSEQL guide for ITPilot [here](https://community.denodo.com/docs/html/browse/6.0/itpilot/nseql/basic_concepts_of_nseql/nseql_commands_general_overview/nseql_commands_general_overview). ITPilot can handle javascript with the use of [components](https://community.denodo.com/docs/html/browse/6.0/itpilot/generation_environment/generation_environment_tools_-_part_i/components_in_itpilot/components_in_itpilot), using the [Execute Javascript](https://community.denodo.com/docs/html/browse/6.0/itpilot/generation_environment/appendix_c_catalog_of_components/execute_javascript/execute_javascript) component, or by executeJS in a sequence. In order to select the data, you would need to implement and configure an [Extractor Component](https://community.denodo.com/docs/html/browse/7.0/itpilot/generation_environment/generation_environment_tools_-_part_i/configuration_of_the_extractor_component/configuration_of_the_extractor_component) in order to actually retrieve the data from the browser. Hope this helps!
Denodo Team
21-08-2018 18:06:59 -0400
Thank you team. The problem i am facing here is denodo itp is uses IE6.0 which is not compatible with modern javascript websites. My page is loaded in HTML and CSS and other javascripts are corrupted. Is there any way i can load my page in HTML and then i can execute javascript to load those script for that page. you can help me atleast by showing one example where i can execute javascript alert function
user
23-08-2018 01:35:19 -0400
Hi, You could try using the [EXECUTEJSBEFORELOAD](https://community.denodo.com/docs/html/browse/6.0/itpilot/nseql/list_of_nseql_commands/commands_for_executing_code/commands_for_executing_code) command in [NSEQL](https://community.denodo.com/docs/html/browse/6.0/itpilot/nseql/basic_concepts_of_nseql/nseql_commands_general_overview/nseql_commands_general_overview). This will, as it says, execute your javascript first, before any onload events. You can also find the ITPilot javadoc [here](https://community.denodo.com/docs/html/browse/7.0/itpilot/javadoc/index). Also, I’m not so sure that ITPilot requires IE6 though. Documentation for [6.0](https://community.denodo.com/docs/html/browse/6.0/platform/installation/preinstallation_tasks/software_requirements/software_requirements#software-requirements-for-itpilot) and [7.0](https://community.denodo.com/docs/html/browse/7.0/platform/installation/preinstallation_tasks/software_requirements/software_requirements#software-requirements-for-itpilot) mention IE 10.x or 11.x, and 5.5 documentation state just an ‘internet explorer browser’. I’m not sure where you heard so, but ITPilot does not require IE6. Try running a more modern version of IE and see if that doesn’t get you past the compatibility issues you’re encountering. If you require assistance with a javascript alert, and have a valid support account, I would recommend you open a [support ticket](http://support.denodo.com/). Hope this helps!
Denodo Team
30-08-2018 16:11:12 -0400
You must sign in to add an answer. If you do not have an account, you can register here