Automation of actions from the browser in the form of code for 1C / JS

Maksim
Employer

[no-member:pro]Maksim[/no-member:pro]Maksim

1 projects
Closed
Project parameters
Type of cooperationOne-time project
Prepaymentwithout prepayment
Payment methodsElectronic money
Acceptance of requestsclosed
Project description
There is a website in Java + Jquery 1.7.1, according to wappalyzer. You need to automate two algorithms of actions and describe them in a script with a minimum run time. The script does not matter what will be written on, the main thing is that it can be called / executed from 1C, that is, 1C-ka gives data to the script, and the script gives the necessary information.
You are interested in the timing and amount of both algorithms.

The first algorithm is this:

1. Opening the site.
2. Enter the login / password (inputs are not in the form, with id).
3. Click on img (it without id, name, class, is an event by click, that is, the launch of the login script). Passes authorization, transfers to the front page of the personal account.
4. You need to click on the menu item that is in the frame. The button has an id and an event on the click that triggers the script. It is loaded into the same frame.
5. You need to click on the submenu (only 4 points in the submenu, all have a common class, according to the structure so div > a > span > font, you need to click on span and so he has an onclick event). Script in event links to page on subdomain of another site
6. After loading, 6 pop-up windows open, which must be blocked / closed.
7. Next, click on the menu item, which is located in html > frameset > frame[name="****"] > html > frameset#**** > frame[name="***"***"(not repeated)] > a bunch of tables. The menu itself is structured like this... > td > table > tbody > tr > td.h > div[id="*****"]. You have to click on td.h, there's an onclick event that triggers the script.
8. Another frame [name="****"] is loaded inside the frameset#****, and you need to click on a#*******. The link has an event on the button and a link to the script to show the page.
9. Again, frameset#***** > frame[name="****"] > iframe[name="***"] is loaded, in it the search form, in the form we need two inputs with unique names. You need to break (the last 6 characters in the second input, the rest in the first) and enter a line in these inputs, which is given from 1C.
10. Click on the input with class, button type, and name (possibly not unique). The form has onsubmit="return(false)", but there is action. The send button has a code-on-click (which sends and receives data, as far as I understand).
11. Below the form, information is loaded into the table in the iframe[name="****"], in it a table with many lines, you need to double-click on the desired attribute with a unique value (information always appears in the first line). On the line is ondblclick="parent.openWin('STORE_IZ_1C')".
12. After a double click, a pop-up window opens on another site, more precisely, a subdomain of another domain with such a structure html > frameset#*** > frameset#*** > frame[name="******] > iframe[name="***"] > form> iname[="name;***"] > ";";;] >;;;; table>. From this input you need to get the value and return it, that is, to 1C receive them.
Id and names are unique, but in some places you will have to pull out the serial number in the tree. The site should not change, but it is not reliable. In theory, you can pull out the text inside span/div, go to the parent and click. In some places, scripts or frames from another site can be downloaded or scripts on another site can be accessed and security issues arise.

Second algorithm:
1-5 points are repeated.
6. You need to click on the submenu item in the menu that appears in another frame. The item has no name, class, id, in theory, can be href. The item is tagged with a specific href and onclick="window.open('Link_on_Other_Domain')".
7. The tab opens, after a few seconds it is transferred to the third domain (not the one on which href stood) with session parameters (such as https: //***********/userMain.do;jsessionid=*****?lo cale=RUS).
8. You need to enter the data from 1C to input#***** and click on the neighboring img#****.
9. The modal window will open and you need to click input#*****. The window will close and the iframe will be loaded onto the page.
10. From this stage, you need to give control to the user in 1C. He will select the desired menu, download the necessary information in the iframe, there will be this view: on the left canvas with a diagram and links on it, on the right a table with checkboxes and three text fields (well, the field with numbering, but we do not need it). When you click on links to canvas'e, checkboxes on the right are activated / disabled.
11. You need to collect those lines in which the checkbox is active and give it to 1C, for example, in JSON format. This is done by pressing the button in 1C. The idea is simply to write a script that 1C will execute at the press of a button (the button will be made by our 1C programmer).
Project author: Maksim