How to use replacement for EditUserEditorSettingsPage to disable Autocomplete

WW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2023

Using ScriptRunner in for Confluence 8.0.2 Data Center.

I finally found the class to disable Autocomplete for a user in their user settings, at least I'm pretty sure that's what it's for.

com.atlassian.confluence.pageobjects.page.user.EditUserEditorSettingsPage

And, of course, it's deprecated. :(

It says:

Use EditUserEditorSettingsPage instead from maven module com.atlassian.confluence:confluence-webdriver-pageobjects. See the new README.

Of course, "the new README" goes to a link I can't access. I'm guessing internal Atlassian or just broken link.

Nothing under com.atlassian.confluence.webdriver.pageobjects looks remotely usable unless I'm looking in the wrong place.

Anyone have any ideas how to disable Autocomplete for a user now?

2 answers

0 votes
WW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2023

Although I had to dig deep for this one, I think this is the new class:

com.atlassian.confluence.webdriver.pageobjects.page.user.EditUserEditorSettingsPage

It is not deprecated and neither is its disableAutoComplete() method, but it also has not apparent way to associate the method with a specific user.

And it's not recognized by ScriptRunner. <sigh>

error.png

I'm working on a critical feature that can't stop working once the other class is deleted, whenever that may be. Using the old class is not really an option for me.

WW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2023

And neither the deprecated nor the new class is recognized by ScriptRunner.

0 votes
Oday Rafeh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2023

Hi @WW 

Can you try this in your ScriptRunner : 

import com.atlassian.confluence.pageobjects.page.user.EditUserEditorSettingsPage

def userKey = "userKey"
def editUserEditorSettingsPage = EditUserEditorSettingsPage.to(userKey)

editUserEditorSettingsPage.disableAutocomplete()

 Dont forget to replace the "userKey"

WW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2023

Hi @Oday Rafeh ,

I understand how to use EditUserEditorSettingsPage, which is deprecated.

What I was asking was how to use the replacement code, which is here: com.atlassian.confluence.webdriver.pageobjects.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events