There is a "Back" button on below HTML page and I can't see to get it clicked.

16 views
Skip to first unread message

Janet

unread,
Jul 20, 2016, 2:48:13 PM7/20/16
to Selenium Users

There is a "Back" button on below HTML page and I can't see to get it clicked.

This is my code in java....

driver1.findElement(By.name("Back")).click();


<div tabindex="0" class="ui-page ui-page-theme-b ui-page-header-fixed ui-page-active" id="chatpage" style="padding-top: 45px; min-height: 730px;" data-role="page" data-theme="b" data-url="chatpage">
            <div class="ui-header ui-bar-inherit ui-header-fixed slidedown" role="banner" data-role="header" data-position="fixed" data-add-back-btn="true"><a class="ui-btn ui-corner-all ui-shadow ui-btn-left ui-toolbar-back-btn ui-icon-carat-l ui-btn-icon-left" role="button" href="javascript:void(0);" data-rel="back">Back</a>
                <h1 class="ui-title" role="heading" aria-level="1">Chat</h1>
            </div>
            

Any ideas?

Thank you!

Jegadeesh mani

unread,
Jul 20, 2016, 2:58:03 PM7/20/16
to seleniu...@googlegroups.com

Hi Janet ,

Use link locator.

Thanks
Jegadeesh


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ebf6cc70-4c2f-4b1f-986f-24a115b28b6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages