This is a migrated thread and some comments may be shown as answers.

Page Navigation arrow mark is not identified

3 Answers 44 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
mohamedali
Top achievements
Rank 1
mohamedali asked on 03 Sep 2016, 01:56 PM

Hi,

My application is developed with Anguar2 framework and Kendo components. Execution fails to identify the page navigation objects such as '>' (to navigate to next page), '<' (to navigate to previous page) etc. 

For example, the html element of first page navigation '|<' is

<a href="#" title="Go to the first page" class="k-link k-pager-nav k-pager-first" data-page="1" tabindex="-1">
    <span class="k-icon k-i-seek-w">
    ::before
    "Go to the first page"
    </span>
</a>

I tried to find element by Xpath, but it doesn't work.

HtmlDiv FirstPage = Manager.ActiveBrowser.Find.ByXPath<HtmlDiv>("//*[@id='kgrid']/kendo-grid/div/div[4]/a[1]");
FirstPage.Click();

Another unique property is title (title="Go to the first page"), but Test Studio doesn't have option to find element by title.

The issue occurs in all the pages when the element to identify is Arrow Mark. In another example, down arrow mark (from grid title bar) defined for filtering records are not identified during playback.

<a class="k-header-column-menu" href="#" tabindex="-1">
    <span class="k-icon k-i-arrowhead-s">
    ::before
    "Column Settings"
    </span>
</a>

Can you please help with this scenario

 

Thanks

Mohamed

 

3 Answers, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 07 Sep 2016, 02:53 PM
Hi Mohamed,

I assume the issue described in this thread duplicates the one with ID 1060637. Hence I will close this one and will continue the discussion in the above mentioned post. If you don't find the answers to your questions in it feel free to reopen this one at any time. Thanks for your understanding! 

Please note we do not recommend using Xpath since by every slight change in the application this may take effect on your test script. However let us discuss the issue in your other post. Thanks again! 

Regards,
Elena Tsvetkova
Telerik by Progress
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
mohamedali
Top achievements
Rank 1
answered on 07 Sep 2016, 04:03 PM

Hi Elna,

Could you please share the thread link as I am uanble to find using thread id.

Regards

Mohamed

0
Elena
Telerik team
answered on 10 Sep 2016, 01:38 PM
Hello Mohamed,

You could follow your tickets from your Telerik account. Additionally I would recommend you modify the automatically generated find expression since it might not be the best. It is recommended to use unique attributes to locate the element. 

Though if you consider the issue is not related to the one in the other thread feel free to continue the discussion here and share further details along with a sample that could be tested on our side. 

Thank you in advance for the cooperation! 

Regards,
Elena Tsvetkova
Telerik by Progress
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
mohamedali
Top achievements
Rank 1
Answers by
Elena
Telerik team
mohamedali
Top achievements
Rank 1
Share this question
or