Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For IE the Open, Save, Cancel buttons in toolbar is not available in WinAppDriver #265

Closed
dhapolapankaj opened this issue Sep 14, 2017 · 3 comments

Comments

@dhapolapankaj
Copy link

Hello Team,

When I click on download link, I see below download toolbar.
ie-toolbar-opensavecancel

Now Inspect.exe is showing the buttons

ie-toolbar-opensavecancel-inspect

I dug little deeper, exported page source and tried to find the child elements
Below is the snippet of Page SOurce

<Pane AcceleratorKey="" AccessKey="" AutomationId="" ClassName="Frame Notification Bar" FrameworkId="Win32" HasKeyboardFocus="False" HelpText="" IsContentElement="True" IsControlElement="True" IsEnabled="True" IsKeyboardFocusable="True" IsOffscreen="False" IsPassword="False" IsRequiredForForm="False" ItemStatus="" ItemType="" LocalizedControlType="pane" Name="" Orientation="None" ProcessId="5312" RuntimeId="42.1643886" x="0" y="0" width="0" height="0">

<ToolBar AcceleratorKey="" AccessKey="" AutomationId="IENotificationBar" ClassName="DirectUIHWND" FrameworkId="Win32" HasKeyboardFocus="False" HelpText="" IsContentElement="True" IsControlElement="True" IsEnabled="True" IsKeyboardFocusable="False" IsOffscreen="False" IsPassword="False" IsRequiredForForm="False" ItemStatus="" ItemType="" LocalizedControlType="tool bar" Name="Notification" Orientation="None" ProcessId="5312" RuntimeId="42.988984" x="0" y="0" width="0" height="0" />

</Pane>

findELementsByXPath do not return any child.

Please have a look.

@khouzam
Copy link
Contributor

khouzam commented Oct 5, 2017

This should be addressed by our RC2 release.

Thanks for the patience.

@dhapolapankaj
Copy link
Author

Hi @khouzam

Thanks for taking this on priority!

The issue seemed to be resolved, I tried the pre RC2 release version and I was able to click on those buttons.
Though my issue has been resolved, I would like to highlight that the Text inside this Pane is not available

Below is the PageSource

  <ToolBar AcceleratorKey="" AccessKey="" AutomationId="IENotificationBar" ClassName="DirectUIHWND" FrameworkId="Win32" HasKeyboardFocus="False" HelpText="" IsContentElement="True" IsControlElement="True" IsEnabled="True" IsKeyboardFocusable="False" IsOffscreen="False" IsPassword="False" IsRequiredForForm="False" ItemStatus="" ItemType="" LocalizedControlType="tool bar" Name="Notification" Orientation="None" ProcessId="4072" RuntimeId="42.266014" x="2400" y="895" width="960" height="50">

    <Text AcceleratorKey="" AccessKey="" AutomationId="" ClassName="" FrameworkId="" HasKeyboardFocus="False" HelpText="" IsContentElement="True" IsControlElement="True" IsEnabled="True" IsKeyboardFocusable="False" IsOffscreen="False" IsPassword="False" IsRequiredForForm="False" ItemStatus="" ItemType="" LocalizedControlType="text" Name="Notification bar Text" Orientation="None" ProcessId="4072" RuntimeId="" x="2416" y="909" width="356" height="27" />

    <Button AcceleratorKey="" AccessKey="Alt+O" AutomationId="" ClassName="" FrameworkId="" HasKeyboardFocus="False" HelpText="" IsContentElement="True" IsControlElement="True" IsEnabled="True" IsKeyboardFocusable="False" IsOffscreen="False" IsPassword="False" IsRequiredForForm="False" ItemStatus="" ItemType="" LocalizedControlType="button" Name="Open" Orientation="None" ProcessId="4072" RuntimeId="" x="3093" y="910" width="73" height="25" />
    <SplitButton AcceleratorKey="" AccessKey="Alt+S" AutomationId="" ClassName="" FrameworkId="" HasKeyboardFocus="False" HelpText="" IsContentElement="True" IsControlElement="True" IsEnabled="True" IsKeyboardFocusable="False" IsOffscreen="False" IsPassword="False" IsRequiredForForm="False" ItemStatus="" ItemType="" LocalizedControlType="split button" Name="Save" Orientation="None" ProcessId="4072" RuntimeId="" x="3166" y="910" width="84" height="25">

      <SplitButton AcceleratorKey="" AccessKey="" AutomationId="" ClassName="" FrameworkId="" HasKeyboardFocus="False" HelpText="" IsContentElement="True" IsControlElement="True" IsEnabled="True" IsKeyboardFocusable="False" IsOffscreen="False" IsPassword="False" IsRequiredForForm="False" ItemStatus="" ItemType="" LocalizedControlType="split button" Name="6" Orientation="None" ProcessId="4072" RuntimeId="" x="3231" y="910" width="16" height="25" />
    </SplitButton>

    <Button AcceleratorKey="" AccessKey="Alt+C" AutomationId="" ClassName="" FrameworkId="" HasKeyboardFocus="False" HelpText="" IsContentElement="True" IsControlElement="True" IsEnabled="True" IsKeyboardFocusable="False" IsOffscreen="False" IsPassword="False" IsRequiredForForm="False" ItemStatus="" ItemType="" LocalizedControlType="button" Name="Cancel" Orientation="None" ProcessId="4072" RuntimeId="" x="3250" y="910" width="80" height="25" />

    <Button AcceleratorKey="" AccessKey="" AutomationId="" ClassName="" FrameworkId="" HasKeyboardFocus="False" HelpText="" IsContentElement="True" IsControlElement="True" IsEnabled="True" IsKeyboardFocusable="False" IsOffscreen="False" IsPassword="False" IsRequiredForForm="False" ItemStatus="" ItemType="" LocalizedControlType="button" Name="Close" Orientation="None" ProcessId="4072" RuntimeId="" x="3337" y="916" width="16" height="16" />

  </ToolBar>

Though we have the Text tag but the content ("Do you want to open or save") is missing.

@hassanuz
Copy link
Contributor

hassanuz commented Sep 5, 2018

Closing as original issue is resolved.

@hassanuz hassanuz closed this as completed Sep 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants