Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,555,136
Community Members
 
Community Events
184
Community Groups

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.
Mar 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.
Mar 22, 2023 • edited

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.
Mar 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.
Mar 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.
Mar 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