Tracking bug for uplifting is_displayed issue fix for WebDriver

RESOLVED WORKSFORME

Status

RESOLVED WORKSFORME
5 years ago
4 years ago

People

(Reporter: zcampbell, Assigned: automatedtester)

Tracking

({pi-marionette-displayed})

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [displayed][affects=webqa])

(Reporter)

Description

5 years ago
Tracking bug for uplifting the fix for:
http://code.google.com/p/selenium/issues/detail?id=5499
into B2G Marionette.
(Reporter)

Comment 1

5 years ago
Test case:

def test_notif_displayed(self):

notification_toaster = self.marionette.find_element('id', 'notification-toaster')

        print notification_toaster.is_displayed()
        print notification_toaster.size
        print notification_toaster.location

        # Push a notification
        self.marionette.execute_script('navigator.mozNotification.createNotification("%s", "%s").show();' % ('title', 'body'))
        time.sleep(2)

        notification_toaster = self.marionette.find_element('id', 'notification-toaster')

        print notification_toaster.is_displayed()
        print notification_toaster.size
        print notification_toaster.location


Output
-----
True
{u'width': 320, u'height': 50}
{u'y': -50, u'x': 0}
True
{u'width': 320, u'height': 50}
{u'y': 0, u'x': 0}
(Reporter)

Comment 2

5 years ago
^Sorry about the formatting there
(Assignee)

Comment 3

5 years ago
I have uplifted atoms code in bug 901776 so am closing
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
This issue has not been fixed. Running the same test case as above, I am still seeing:

True
{u'width': 320, u'height': 50}
{u'y': -50, u'x': 0}
True
{u'width': 320, u'height': 50}
{u'y': 0, u'x': 0}

I found this when trying to fix bug 931015, which asks us to restore is_displayed() code based on this bug being fixed. is_displayed() in that instance is still reporting incorrectly.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(Assignee)

Updated

5 years ago
Whiteboard: [displayed]
(Assignee)

Updated

4 years ago
Keywords: ateam-marionette-displayed

Comment 5

4 years ago
Can we just do a workaround this?
Or we should just wait for the marionette investigation?
Flags: needinfo?(dburns)
(Assignee)

Comment 6

4 years ago
Andrei,

It still requires a bit more investigation
Flags: needinfo?(dburns)
Whiteboard: [displayed] → [displayed][affects=webqa]
I'm not able to reproduce this issue anymore. I'm not sure when was it fixed, but is_displayed() returns the correct results. 
I ran the testcase described in comment 1, and I got the following results:
False
{u'width': 320, u'height': 50}
{u'y': -50, u'x': 0}
True
{u'width': 320, u'height': 50}
{u'y': 0, u'x': 0}

I tested this on my Flame, using the latest master build:
Gaia      740faa5d0060fb218b407cf224330654ddf833a5
Gecko     https://hg.mozilla.org/mozilla-central/rev/d35c1bf0f084
BuildID   20140708160204
Version   33.0a1
ro.build.version.incremental=108
ro.build.date=Tue Jun 10 19:40:40 CST 2014

Closing this as the issue is not reproducible anymore.
Status: REOPENED → RESOLVED
Last Resolved: 5 years ago4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.