Atlassian upm page-objects library: error while binding PluginManager page to class

I'm trying to test an add-on I develop using atlassian-universal-plugin-manager-pageobjects  library ( ) from Maven central. I'm using the latest version of atlassian-universal-plugin-manager-pageobjects (tried 2.19-mapps-m5 and 2.18.4) and Atlassian Bitbucket v5.0.0.

I'm running just


function, but it fails due to timeout:

com.atlassian.pageobjects.binder.PageBindingWaitException: [PageObject:com.atlassian.upm.pageobjects.PluginManager@62417a16]
        at com.atlassian.pageobjects.binder.InjectPageBinder$WaitUntilPhase.execute(
        at com.atlassian.pageobjects.binder.InjectPageBinder$InjectableDelayedBind.advanceTo(
        at com.atlassian.pageobjects.binder.InjectPageBinder$InjectableDelayedBind.bind(
        at com.atlassian.pageobjects.binder.InjectPageBinder.navigateToAndBind(
        at com.atlassian.webdriver.bitbucket.AbstractBitbucketTestedProduct.visit(

Caused by: java.lang.AssertionError: Query <com.atlassian.pageobjects.elements.query.Conditions$And:
 -com.atlassian.pageobjects.elements.query.webdriver.WebDriverLocatableBasedTimedCondition[interval=100,defaultTimeout=20000][locatable=WebDriverSingleLocator[ upm-panel-manage],valueProvider=hasClass]
 -com.atlassian.pageobjects.elements.query.webdriver.WebDriverLocatableBasedTimedCondition[interval=100,defaultTimeout=20000][locatable=WebDriverSingleLocator[ upm-panel-manage],valueProvider=hasClass]>
Expected: is <true> by 20000ms (default timeout)
Got (last value): <false>
        at com.atlassian.pageobjects.elements.query.Poller.waitUntil(
        at com.atlassian.pageobjects.elements.query.Poller.waitUntil(
        at com.atlassian.pageobjects.elements.query.Poller.waitUntilTrue(
        at com.atlassian.upm.pageobjects.PluginManager.waitUntilTabIsLoaded(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at com.atlassian.pageobjects.binder.InjectPageBinder.callLifecycleMethod(
        at com.atlassian.pageobjects.binder.InjectPageBinder.access$900(
        at com.atlassian.pageobjects.binder.InjectPageBinder$WaitUntilPhase.execute(
        ... 33 more

The reason why this happens is in

at com.atlassian.upm.pageobjects.PluginManager.waitUntilTabIsLoaded(

It waits until an element with id="upm-panel-manage" has 2 CSS classes: "upm-selected" and "loaded" while in 2 my browsers (Firefox and Chrome) the fully loaded "upm-panel-manage" element effective contains only "upm-selected" (and "upm-panel" but this doesn't matter):

<div id="upm-panel-manage" class="upm-panel upm-selected">

So I wonder how that could happen at all if UPM plugin has so many tests? And how would I overcome the problem? Should I wait for the next release of atlassian-universal-plugin-manager-pageobjects library?

I tried to instantiate a class from PluginManager as a work-around to redefine waitUntilTabIsLoaded() call, this allowed to overcome this error at this very steps, but other methods bind PluginManager class explicitly, so it didn't help.

0 answers

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

72 views 0 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you