Hello Friends,

Can someone help how to disable the buttons by using selenium webdriver
java.

Ex: When you login to google, there will be back button and forward button.
So , how to disable backward button. Please help on this.


Thanks & Regards
Amar

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/GAiGUTRGyq8J.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Michael Wowro at Nov 19, 2012 at 12:24 pm
    Hallo Amar,

    Selenium WebDriver follows the principle to simulate a real human user. So
    disabling a button will not be covered by WebDriver.
    You'd have to use JavaScript within your WebDriver-code.

    Yours Michael

    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/1UmTj3mk3pcJ.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Gopal munagala at Nov 19, 2012 at 1:43 pm
    i am also facing the same issue please any one Can someone help how to
    disable and enable the forward and backword buttons by using selenium
    webdriver or selenium RC

    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/ENPmjV2Q0tsJ.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Mark Collin at Nov 19, 2012 at 10:06 pm
    What do you mean by a back button and a forward button?



    Browser buttons? Some button in the HTML?



    If it's something in the HTML you could use a JavascriptExecutor to send
    some JavaScript over to manipulate elements.



    From: selenium-users@googlegroups.com
    On Behalf Of Amar
    Sent: 19 November 2012 11:42
    To: selenium-users@googlegroups.com
    Subject: [selenium-users] How can we disable buttons using selenium
    webdriver java



    Hello Friends,

    Can someone help how to disable the buttons by using selenium webdriver
    java.

    Ex: When you login to google, there will be back button and forward button.
    So , how to disable backward button. Please help on this.


    Thanks & Regards
    Amar

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    To view this discussion on the web visit
    https://groups.google.com/d/msg/selenium-users/-/GAiGUTRGyq8J.
    For more options, visit https://groups.google.com/groups/opt_out.



    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Gopal Krishna at Nov 20, 2012 at 1:44 am
    Browser having a back button and a forward button? how to enable or disable
    is there any command for that in webdriver ? please give me syntax also for
    that one?



    On Tue, Nov 20, 2012 at 3:30 AM, Mark Collin
    wrote:
    What do you mean by a back button and a forward button?****

    ** **

    Browser buttons? Some button in the HTML?****

    ** **

    If it’s something in the HTML you could use a JavascriptExecutor to send
    some JavaScript over to manipulate elements. ****

    ** **

    *From:* selenium-users@googlegroups.com [mailto:
    selenium-users@googlegroups.com] *On Behalf Of *Amar
    *Sent:* 19 November 2012 11:42
    *To:* selenium-users@googlegroups.com
    *Subject:* [selenium-users] How can we disable buttons using selenium
    webdriver java****

    ** **

    Hello Friends,

    Can someone help how to disable the buttons by using selenium webdriver
    java.

    Ex: When you login to google, there will be back button and forward
    button. So , how to disable backward button. Please help on this.


    Thanks & Regards
    Amar****

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    To view this discussion on the web visit
    https://groups.google.com/d/msg/selenium-users/-/GAiGUTRGyq8J.
    For more options, visit https://groups.google.com/groups/opt_out.

    ****

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.



    --
    gopala krishna munagala

    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Mark Collin at Nov 20, 2012 at 6:36 am
    You can't disable browser buttons with Selenium



    From: selenium-users@googlegroups.com
    On Behalf Of Gopal Krishna
    Sent: 20 November 2012 01:45
    To: selenium-users@googlegroups.com
    Subject: Re: [selenium-users] How can we disable buttons using selenium
    webdriver java



    Browser having a back button and a forward button? how to enable or disable
    is there any command for that in webdriver ? please give me syntax also for
    that one?





    On Tue, Nov 20, 2012 at 3:30 AM, Mark Collin wrote:

    What do you mean by a back button and a forward button?



    Browser buttons? Some button in the HTML?



    If it's something in the HTML you could use a JavascriptExecutor to send
    some JavaScript over to manipulate elements.



    From: selenium-users@googlegroups.com
    On Behalf Of Amar
    Sent: 19 November 2012 11:42
    To: selenium-users@googlegroups.com
    Subject: [selenium-users] How can we disable buttons using selenium
    webdriver java



    Hello Friends,

    Can someone help how to disable the buttons by using selenium webdriver
    java.

    Ex: When you login to google, there will be back button and forward button.
    So , how to disable backward button. Please help on this.


    Thanks & Regards
    Amar

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    To view this discussion on the web visit
    https://groups.google.com/d/msg/selenium-users/-/GAiGUTRGyq8J.
    For more options, visit https://groups.google.com/groups/opt_out.



    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com
    .
    For more options, visit https://groups.google.com/groups/opt_out.









    --
    gopala krishna munagala

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to
    selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.



    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Prakash Jayakumar at Nov 20, 2012 at 11:03 am
    I don't get you bro. You mean the backward and forward buttons on the
    browser??

    If you meant that, then as far as my knowledge goes, there is no way that
    Selenium supports any command to disable/enable browser buttons :/

    If you get to know some work around, please let us all know.

    What i wonder now is, if Selenium can't disable/enable browser buttons,
    then how do Selenium helps us to go back to the previous page in the
    browser with the method, goBack() ???? O_o

    (Reference -
    http://release.seleniumhq.org/selenium-remote-control/0.9.2/doc/dotnet/Selenium.ISelenium.GoBack.html)

    Maybe, if the implementation of goBack() is explained, we may find a way
    out for this..

    Peace out !!

    Cheers,
    Prakash

    On Monday, November 19, 2012 5:12:22 PM UTC+5:30, Amar wrote:

    Hello Friends,

    Can someone help how to disable the buttons by using selenium webdriver
    java.

    Ex: When you login to google, there will be back button and forward
    button. So , how to disable backward button. Please help on this.


    Thanks & Regards
    Amar
    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/rts8C_FK_gAJ.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupselenium-users @
categoriesselenium
postedNov 19, '12 at 11:48a
activeNov 20, '12 at 11:03a
posts7
users6
websiteseleniumhq.org

People

Translate

site design / logo © 2022 Grokbase