Hi Can you help me to find an example for a managing a web browser in managed application, as an example I want to reach to my emails in program and also open the email in normal browser
Right now I enter ID and password, but I can't click the ENTER button, for example I want to login to my acconut, I open web site, entering my ID and Pasword but can not click the OK button
Let me explain, by using 1C:Enterprise 8 platform, we want to manage a web-site (it's like a its - u click a button in a program and it 1-opens web site, 2-writes ID and password and then 3-eners the site). We did first two steps, but we couldn't find how to do the last one. And the other question is, how to do all these not in a program form, but with explorer or chrome.
If you are trying to do it with GotoURL, you can't click the button on the website directly, but you can use an external web-server that gets parameters from 1C application and manages your website.
we didn't use GotoURL, I can share what did we do (managed form), here we open the gmail web-site, fill e-mail address and password, but don't know how to sign in, because we did not find how to call event to click button:
Code
&AtClient
Procedure Go(Command)
HMTL=Adres; // (HTML=html document field, Adres = web-site)
EndProcedure
&AtClient
Procedure SignIn(Command)
HTMLPage=Items.HMTL.Document;
For Each Row In HTMLPage.all Do
If Not Row.nodeType=10 Then
If Row.HasAttribute("Name") Then
If Row.Name="Email" Then
Row.SetAttribute("innerText","destek@1c.com.tr");
EndIf;
If Row.Name="Passwd" Then
Row.SetAttribute("innerText","password");
EndIf;
If Row.Name="signIn" Then
//calling button onclick
EndIf;
EndIf;
EndIf;
EndDo;
EndProcedure