cancel
Showing results for 
Search instead for 
Did you mean: 

navigation with Keys()

SOLVED
Contributor

navigation with Keys()

I need to navigate backwards, in desktop this is comboBox.Keys("![Tab]")

I see it navigates to it. But I'm unable to click it or work on it:

AttributeError: 'NoneType' object has no attribute 'Click'

How can I make this object active?, it is missing name, So I need to navigate with Keys() or Click()

 

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
Contributor

Re: navigation with Keys()

TC do not tell anything. the portion over was written in TC using python. The issue is that I navigate correctly to the correct combobox, but if I click it or press enter, the actions comes on the below combobox.

 

>> Accessibility Insight gives this complain

>I think this is absolutely irrelevant to TestComplete.

I just tells that the combobox has an inaccessible element due to missing names. I will ask the developer to add a name to the focus point. This will fix it.

 

 

View solution in original post

4 REPLIES 4
Highlighted
Community Hero

Re: navigation with Keys()

Can you share more of your code so we can see the context?


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Contributor

Re: navigation with Keys()

 

It chooses a combobox, but since the fist focuspoint is missing a name, I need to press ![Tab][Enter], I see it marks the correct element, but when it presses enter, it gives dropdown of the 2nd line.

app = Aliases.ConfigurationApplication.HwndSource_MainWindow
ComboBox = app.MainWindow.TabControl2.TabControlConfig.ItemsControl.ComboboxOperatorCardReader
ComboBox = ComboBox.Keys("![Tab][Enter]")
ComboBox.Click()

I do not get any errors in TC, but Accessibility Insight gives this complain:

combobox-null.jpg

 

Community Hero

Re: navigation with Keys()

Hi,

 

Considering that we are in the Desktop section of Community, what IDE/language is your tested application created with?

And could you please describe the problem with more details as I am not sure that I understand what do you expect to get and what actually test script ends with?

 

> Accessibility Insight gives this complain

I think this is absolutely irrelevant to TestComplete.

 

P.S. Is combobox recognized by TestComplete? Can you see the content of combobox (list of items) in the Object Browser?

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Contributor

Re: navigation with Keys()

TC do not tell anything. the portion over was written in TC using python. The issue is that I navigate correctly to the correct combobox, but if I click it or press enter, the actions comes on the below combobox.

 

>> Accessibility Insight gives this complain

>I think this is absolutely irrelevant to TestComplete.

I just tells that the combobox has an inaccessible element due to missing names. I will ask the developer to add a name to the focus point. This will fix it.

 

 

View solution in original post

New Here?
Join us and watch the welcome video:
Watch the new Interview