anshooarora / extentreports-csharp

Community version of Extent API for .NET has moved to https://github.com/extent-framework/
http://extentreports.com/
Other
47 stars 43 forks source link

Dasboard view not appearing as default view #102

Closed brknlpr closed 6 years ago

brknlpr commented 6 years ago

I am configuring the config.xml like below but the script that i provided is not affecting the default view.

<!-- defaults to UTF-8 -->
<encoding>UTF-8</encoding>

<!-- protocol for script and stylesheets -->
<!-- defaults to https -->
<protocol>https</protocol>

<!-- title of the document -->
<documentTitle>Test Report</documentTitle>

<!-- report name - displayed at top-nav -->
<reportName>Test Report</reportName>

<!-- location of charts in the test view -->
<!-- top, bottom -->
<testViewChartLocation>bottom</testViewChartLocation>

<!-- custom javascript -->
<scripts>
     <![CDATA[ $(document).ready(function() {$('.waves-effect:nth-child(3) a:nth-child(1) i:nth-child(1)').click();});]]>
</scripts>

<!-- custom styles -->
<styles>
    <![CDATA[

    ]]>
</styles>

Environment Details Extent report Version used: v3.0.2 C# Operating System and version: Windows 10 If anyone made it on v3.0.2 can help ?

anshooarora commented 6 years ago

You need to do this:

$("a[view='dashboard-view']").click();
brknlpr commented 6 years ago

Hi, Thanks for the answer but didnt work.