Forum Discussion
Hi,
It is not easy to recommend something specific without knowing what exact ListView control and on what OS you are talking about, but usually oControl.Click('List Item') scrolls the referenced list item into view and clicks it.
Maybe http://support.smartbear.com/viewarticle/71258/, http://support.smartbear.com/viewarticle/75711/ or http://support.smartbear.com/viewarticle/70942/ will help...
Hi Alex,
I'm testing Android application. Object structure is following:
Mobile -> Device -> Process->RootLayout->Layout("NO_ID")->Layout("NO_ID")->Layout("headers")->ListView("list") - "android.widget.ListView" -> listview items, e.g. Layout("NO_ID", 10) -> Layout("NO_ID") with 2 objects->
-ListView("summary")
-ListView("title") with property ControlText = "Send by email"
I want to click on ListView("title").
ListView("list") is its 3rd parent object.
I have tried Aliases.SignatusMobile.SettingsAndPreferences.Content.Menu.ClickItem("Send by email")
Total number of items: 14. Items: '', '', '', '', '', '', '', '', '', '', '', ... Tested object: Aliases.SignatusMobile.SettingsAndPreferences.Content.Menu (Mobile.Device("SM-T365").Process("com.anasoft.signatus.app").RootLayout("").Layout("NO_ID").Layout("NO_ID").Layout("headers").ListView("list"))
I know that I'm missing something, but I don't know what.
Thanks,
Marek
- AlexKaras9 years agoChampion Level 3
Hi Marek,
So, didn't http://support.smartbear.com/viewarticle/75711/ help?
Any error reported to the TestComplete test log?
What is the actual test code that does not work (and how exactly it does not work) or results in error in the log?
- MarekFric9 years agoOccasional Contributor
Hi Alex,
I have tried Aliases.SignatusMobile.SettingsAndPreferences.Content.Menu.ClickItem("Send by email")
Error reported to the log is:
Total number of items: 14. Items: '', '', '', '', '', '', '', '', '', '', '', ... Tested object: Aliases.SignatusMobile.SettingsAndPreferences.Content.Menu (Mobile.Device("SM-T365").Process("com.anasoft.signatus.app").RootLayout("").Layout("NO_ID").Layout("NO_ID").Layout("headers").ListView("list"))
So far nothing from http://support.smartbear.com/viewarticle/75711 didn't help.
If object is visible on screen then method e.g. FindEx works well and I can click on on object, but if object is not on screen then FindEx do not find requested object.
- AlexKaras9 years agoChampion Level 3
Marek,
> If object is visible on screen then method e.g. FindEx works well and I can click on on object
Have you tried to scroll the item into view as recommended here: http://support.smartbear.com/viewarticle/74368/ ?
Related Content
- 11 months agoakilan
- 3 years agoOAn
- 5 years agounderqualified
- 5 years agopaarmann-ara
Recent Discussions
- 3 days agoMW_Didata