Implemented

Website Auto Refresh

avatar

On mac the option that is on windows to refresh the connection is missing for a time internal.

Is it possible to add this option that is in advance-automatic refresh on windows?

TIA
S

All Comments (12)

avatar

Hi,

I will create a ticket to add this feature. We will let you know when we have updates.

Best regards,


Maxim Buisson

avatar

Thanks for this


S

avatar

Also is login - script possible one mac also?

avatar

Hi,

We will also look into adding the custom javascript script to the website entries on macOS and we will let you know when we have updates.

Best regards,


Maxim Buisson

avatar

ty :)

avatar

Hello,

It should now be possible to use Custom script on RDM Mac as of the latest release (2024.3.4.2)
If there's anything, don't hesitate to ask.

Best regard,

Michel Lambert

avatar

Hey Michel

Thanks for this. I can see it but it seems not to work as expected. Can you confirm for me

An example code would be that works on windows.

$(document).ready(function() {
   // Place your existing code here
 
   // Simulate clicking the password field and submitting the form after a delay
   setTimeout(function() {
       submitClicked();
   }, 250); // Adjust the delay as needed
});
 
function submitClicked() {
    // Find the password field by its ID or other selector
    var passwordField = document.getElementById('passwd');
 
    // Check if the password field exists
    if (passwordField) {
        // Simulate clicking the password field to give it focus
        passwordField.click();
 
        // Find the submit button by its ID or other selector
        var submitButton = document.querySelector("input[type='submit']");
 
        // Check if the submit button exists
        if (submitButton) {
            // Simulate clicking the submit button
            submitButton.click();
        } else {
            console.error("Submit button not found");
        }
    } else {
        console.error("Password field not found");
    }
}
avatar

Hello,

I am not sure why that script works for Windows and not for us. We will look into it. But for now, it looks like our script might not support JQuery. Our script is ran once the document is ready, so you don't need the $(document).ready part. I modified your script a little to match with the website I'm testing on and I removed the JQuery part, and this works for me. Please let me know if it does for you.

setTimeout(function() {

       submitClicked();

   }, 250);




function submitClicked() {

    // Find the password field by its ID or other selector

    var passwordField = document.getElementById('password');

 

    // Check if the password field exists

    if (passwordField) {

        // Simulate clicking the password field to give it focus

        passwordField.click();

		passwordField.value = "Password123"

		document.getElementById('username').value = "student";

 

        // Find the submit button by its ID or other selector

        var submitButton = document.getElementById('submit');

 

        // Check if the submit button exists

        if (submitButton) {

            // Simulate clicking the submit button

            submitButton.click();

        } else {

            console.error("Submit button not found");

        }

    } else {

        console.error("Password field not found");

    }

}


Please note that if filling and sending a login form is the only thing you want to do, you can use our form login for this purpose. It will use the credentials set on the entry and input them in the fields you set. It looks like this. This does the same thing as the script above.


Best regards,


Maxim Buisson

Screenshot 2024-09-25 at 8.20.15 AM.png

avatar

Hey, thanks. It seems the script is needed more on Windows, and on Mac, it's not required as much with the above info you shared.

Is it possible to implement the auto-refresh?

image (3).png

avatar

Hi,

The auto-refresh has been implemented internally but didn't quite make the deadline for 2024.3.4.X. It will be included in 2024.3.5.
Sorry for the delay.

Best regards,

Jesse Galarneau

avatar

Hello,

The Auto-refresh is now available in the latest version of RDM Mac (2024.3.5.1)
don't hesitate to communicate with us if there's anything.

Best regards,

Michel Lambert

avatar

Thanks for this. Working as expected:)