FAQ
Hello all,

Need your expertise to solve one of my problem where i need to input the
few data to the web page from csv or text file.

Eg. After web-driver open the browser i need to put IP Address, Password,
Domain name, user id and click next. On the next page again i need to
fill some ip address and other user specific details and so on.

Please help me to do it.

Regards
Deepak

--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webdriver@googlegroups.com.
To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.

Search Discussions

  • Krishnan Mahadevan at Apr 26, 2012 at 8:45 am
    How about you showing us the code that you have so far, which does what you
    are talking about.
    Also include what error you are facing.

    Dont forget to include the selenium version you are using and the browser
    flavor that you are working with along with its version.

    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive, fattening
    or in love with someone else!"


    On Thu, Apr 26, 2012 at 1:54 PM, Deepak Jangid wrote:

    Hello all,

    Need your expertise to solve one of my problem where i need to input the
    few data to the web page from csv or text file.

    Eg. After web-driver open the browser i need to put IP Address, Password,
    Domain name, user id and click next. On the next page again i need to
    fill some ip address and other user specific details and so on.

    Please help me to do it.

    Regards
    Deepak

    --
    You received this message because you are subscribed to the Google Groups
    "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
  • Deepak Jangid at Apr 26, 2012 at 8:49 am
    selenium 2.20
    python 2.7

    code:
    from selenium.common.exceptions import NoSuchElementException
    from selenium.webdriver.common.keys import Keys
    from selenium import selenium
    import time
    import os, stat
    import re
    import selenium.webdriver.common.alert
    from Tkinter import *
    import tkMessageBox
    import Tkinter


    PROXY_HOST = "sg.proxy.avaya.com"
    PROXY_PORT = 8000

    fp = webdriver.FirefoxProfile()

    fp.set_preference("network.proxy.type", 1)

    fp.set_preference("network.proxy.http", PROXY_HOST)
    fp.set_preference("network.proxy.http_port", PROXY_PORT)
    fp.set_preference("network.proxy.ftp", PROXY_HOST)
    fp.set_preference("network.proxy.ftp_port", PROXY_PORT)
    fp.set_preference("network.proxy.ssl", PROXY_HOST)
    fp.set_preference("network.proxy.ssl_port", PROXY_PORT)

    fp.set_preference("network.proxy.no_proxies_on", "localhost,127.0.0.1")#
    set this value as desired
    fp.update_preferences()
    browser = webdriver.Firefox(firefox_profile=fp)
    browser.implicitly_wait(10)
    time.sleep(0.2)
    browser.get("https://192.168.2.62/")
    #print browser.get("https://192.168.2.62/")
    time.sleep(5)
    elem = browser.find_element_by_id('LoginForm:userName') # Find the query box
    elem.send_keys("admin" + Keys.RETURN)
    time.sleep(2)
    elem = browser.find_element_by_id('LoginForm:password') # Find the query box
    elem.send_keys("admin01" + Keys.RETURN)

    i am putting all values via script only here. But i want to put all from
    text file not via direct code lines.
    On Thu, Apr 26, 2012 at 2:15 PM, Krishnan Mahadevan wrote:

    How about you showing us the code that you have so far, which does what
    you are talking about.
    Also include what error you are facing.

    Dont forget to include the selenium version you are using and the browser
    flavor that you are working with along with its version.

    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive, fattening
    or in love with someone else!"


    On Thu, Apr 26, 2012 at 1:54 PM, Deepak Jangid wrote:

    Hello all,

    Need your expertise to solve one of my problem where i need to input the
    few data to the web page from csv or text file.

    Eg. After web-driver open the browser i need to put IP Address, Password,
    Domain name, user id and click next. On the next page again i need to
    fill some ip address and other user specific details and so on.

    Please help me to do it.

    Regards
    Deepak

    --
    You received this message because you are subscribed to the Google Groups
    "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google Groups
    "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
  • Krishnan Mahadevan at Apr 26, 2012 at 9:06 am
    Are you looking for iterating through your txt/csv file for packing in the
    values for this line of code ?
    browser.get("https://192.168.2.62/")
    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive, fattening
    or in love with someone else!"


    On Thu, Apr 26, 2012 at 2:19 PM, Deepak Jangid wrote:

    selenium 2.20
    python 2.7

    code:
    from selenium.common.exceptions import NoSuchElementException
    from selenium.webdriver.common.keys import Keys
    from selenium import selenium
    import time
    import os, stat
    import re
    import selenium.webdriver.common.alert
    from Tkinter import *
    import tkMessageBox
    import Tkinter


    PROXY_HOST = "sg.proxy.avaya.com"
    PROXY_PORT = 8000

    fp = webdriver.FirefoxProfile()

    fp.set_preference("network.proxy.type", 1)

    fp.set_preference("network.proxy.http", PROXY_HOST)
    fp.set_preference("network.proxy.http_port", PROXY_PORT)
    fp.set_preference("network.proxy.ftp", PROXY_HOST)
    fp.set_preference("network.proxy.ftp_port", PROXY_PORT)
    fp.set_preference("network.proxy.ssl", PROXY_HOST)
    fp.set_preference("network.proxy.ssl_port", PROXY_PORT)

    fp.set_preference("network.proxy.no_proxies_on", "localhost,127.0.0.1")#
    set this value as desired
    fp.update_preferences()
    browser = webdriver.Firefox(firefox_profile=fp)
    browser.implicitly_wait(10)
    time.sleep(0.2)
    browser.get("https://192.168.2.62/")
    #print browser.get("https://192.168.2.62/")
    time.sleep(5)
    elem = browser.find_element_by_id('LoginForm:userName') # Find the query
    box
    elem.send_keys("admin" + Keys.RETURN)
    time.sleep(2)
    elem = browser.find_element_by_id('LoginForm:password') # Find the query
    box
    elem.send_keys("admin01" + Keys.RETURN)

    i am putting all values via script only here. But i want to put all from
    text file not via direct code lines.

    On Thu, Apr 26, 2012 at 2:15 PM, Krishnan Mahadevan <
    krishnan.mahadevan1978@gmail.com> wrote:
    How about you showing us the code that you have so far, which does what
    you are talking about.
    Also include what error you are facing.

    Dont forget to include the selenium version you are using and the browser
    flavor that you are working with along with its version.

    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive,
    fattening or in love with someone else!"


    On Thu, Apr 26, 2012 at 1:54 PM, Deepak Jangid wrote:

    Hello all,

    Need your expertise to solve one of my problem where i need to input the
    few data to the web page from csv or text file.

    Eg. After web-driver open the browser i need to put IP Address,
    Password, Domain name, user id and click next. On the next page again i
    need to fill some ip address and other user specific details and so on.

    Please help me to do it.

    Regards
    Deepak

    --
    You received this message because you are subscribed to the Google
    Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google Groups
    "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google Groups
    "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
  • Deepak Jangid at Apr 26, 2012 at 9:22 am
    yes in that browser i want to put all the data from text file and install
    new server.
    On Thu, Apr 26, 2012 at 2:36 PM, Krishnan Mahadevan wrote:

    Are you looking for iterating through your txt/csv file for packing in the
    values for this line of code ?
    browser.get("https://192.168.2.62/")
    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive, fattening
    or in love with someone else!"


    On Thu, Apr 26, 2012 at 2:19 PM, Deepak Jangid wrote:

    selenium 2.20
    python 2.7

    code:
    from selenium.common.exceptions import NoSuchElementException
    from selenium.webdriver.common.keys import Keys
    from selenium import selenium
    import time
    import os, stat
    import re
    import selenium.webdriver.common.alert
    from Tkinter import *
    import tkMessageBox
    import Tkinter


    PROXY_HOST = "sg.proxy.avaya.com"
    PROXY_PORT = 8000

    fp = webdriver.FirefoxProfile()

    fp.set_preference("network.proxy.type", 1)

    fp.set_preference("network.proxy.http", PROXY_HOST)
    fp.set_preference("network.proxy.http_port", PROXY_PORT)
    fp.set_preference("network.proxy.ftp", PROXY_HOST)
    fp.set_preference("network.proxy.ftp_port", PROXY_PORT)
    fp.set_preference("network.proxy.ssl", PROXY_HOST)
    fp.set_preference("network.proxy.ssl_port", PROXY_PORT)

    fp.set_preference("network.proxy.no_proxies_on", "localhost,127.0.0.1")#
    set this value as desired
    fp.update_preferences()
    browser = webdriver.Firefox(firefox_profile=fp)
    browser.implicitly_wait(10)
    time.sleep(0.2)
    browser.get("https://192.168.2.62/")
    #print browser.get("https://192.168.2.62/")
    time.sleep(5)
    elem = browser.find_element_by_id('LoginForm:userName') # Find the query
    box
    elem.send_keys("admin" + Keys.RETURN)
    time.sleep(2)
    elem = browser.find_element_by_id('LoginForm:password') # Find the query
    box
    elem.send_keys("admin01" + Keys.RETURN)

    i am putting all values via script only here. But i want to put all from
    text file not via direct code lines.

    On Thu, Apr 26, 2012 at 2:15 PM, Krishnan Mahadevan <
    krishnan.mahadevan1978@gmail.com> wrote:
    How about you showing us the code that you have so far, which does what
    you are talking about.
    Also include what error you are facing.

    Dont forget to include the selenium version you are using and the
    browser flavor that you are working with along with its version.

    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive,
    fattening or in love with someone else!"


    On Thu, Apr 26, 2012 at 1:54 PM, Deepak Jangid wrote:

    Hello all,

    Need your expertise to solve one of my problem where i need to input
    the few data to the web page from csv or text file.

    Eg. After web-driver open the browser i need to put IP Address,
    Password, Domain name, user id and click next. On the next page again i
    need to fill some ip address and other user specific details and so on.

    Please help me to do it.

    Regards
    Deepak

    --
    You received this message because you are subscribed to the Google
    Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google
    Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google Groups
    "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google Groups
    "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
  • Krishnan Mahadevan at Apr 26, 2012 at 9:38 am
    Then you can always put in python related logic to read the file, and then
    within a loop iterate the browser.get() right ?
    Have you tried doing that ?


    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive, fattening
    or in love with someone else!"

    On Thu, Apr 26, 2012 at 2:52 PM, Deepak Jangid wrote:

    yes in that browser i want to put all the data from text file and install
    new server.


    On Thu, Apr 26, 2012 at 2:36 PM, Krishnan Mahadevan <
    krishnan.mahadevan1978@gmail.com> wrote:
    Are you looking for iterating through your txt/csv file for packing in
    the values for this line of code ?
    browser.get("https://192.168.2.62/")
    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive,
    fattening or in love with someone else!"


    On Thu, Apr 26, 2012 at 2:19 PM, Deepak Jangid wrote:

    selenium 2.20
    python 2.7

    code:
    from selenium.common.exceptions import NoSuchElementException
    from selenium.webdriver.common.keys import Keys
    from selenium import selenium
    import time
    import os, stat
    import re
    import selenium.webdriver.common.alert
    from Tkinter import *
    import tkMessageBox
    import Tkinter


    PROXY_HOST = "sg.proxy.avaya.com"
    PROXY_PORT = 8000

    fp = webdriver.FirefoxProfile()

    fp.set_preference("network.proxy.type", 1)

    fp.set_preference("network.proxy.http", PROXY_HOST)
    fp.set_preference("network.proxy.http_port", PROXY_PORT)
    fp.set_preference("network.proxy.ftp", PROXY_HOST)
    fp.set_preference("network.proxy.ftp_port", PROXY_PORT)
    fp.set_preference("network.proxy.ssl", PROXY_HOST)
    fp.set_preference("network.proxy.ssl_port", PROXY_PORT)

    fp.set_preference("network.proxy.no_proxies_on", "localhost,127.0.0.1")#
    set this value as desired
    fp.update_preferences()
    browser = webdriver.Firefox(firefox_profile=fp)
    browser.implicitly_wait(10)
    time.sleep(0.2)
    browser.get("https://192.168.2.62/")
    #print browser.get("https://192.168.2.62/")
    time.sleep(5)
    elem = browser.find_element_by_id('LoginForm:userName') # Find the query
    box
    elem.send_keys("admin" + Keys.RETURN)
    time.sleep(2)
    elem = browser.find_element_by_id('LoginForm:password') # Find the query
    box
    elem.send_keys("admin01" + Keys.RETURN)

    i am putting all values via script only here. But i want to put all from
    text file not via direct code lines.

    On Thu, Apr 26, 2012 at 2:15 PM, Krishnan Mahadevan <
    krishnan.mahadevan1978@gmail.com> wrote:
    How about you showing us the code that you have so far, which does what
    you are talking about.
    Also include what error you are facing.

    Dont forget to include the selenium version you are using and the
    browser flavor that you are working with along with its version.

    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive,
    fattening or in love with someone else!"


    On Thu, Apr 26, 2012 at 1:54 PM, Deepak Jangid wrote:

    Hello all,

    Need your expertise to solve one of my problem where i need to input
    the few data to the web page from csv or text file.

    Eg. After web-driver open the browser i need to put IP Address,
    Password, Domain name, user id and click next. On the next page again i
    need to fill some ip address and other user specific details and so on.

    Please help me to do it.

    Regards
    Deepak

    --
    You received this message because you are subscribed to the Google
    Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google
    Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google
    Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google Groups
    "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google Groups
    "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
  • Deepak Jangid at Apr 26, 2012 at 9:40 am
    If i will do that, how it will know that which data need to be taken from
    text file. Like sometime IP address some time user id password.
    On Thu, Apr 26, 2012 at 3:08 PM, Krishnan Mahadevan wrote:

    Then you can always put in python related logic to read the file, and then
    within a loop iterate the browser.get() right ?
    Have you tried doing that ?


    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive, fattening
    or in love with someone else!"

    On Thu, Apr 26, 2012 at 2:52 PM, Deepak Jangid wrote:

    yes in that browser i want to put all the data from text file and install
    new server.


    On Thu, Apr 26, 2012 at 2:36 PM, Krishnan Mahadevan <
    krishnan.mahadevan1978@gmail.com> wrote:
    Are you looking for iterating through your txt/csv file for packing in
    the values for this line of code ?
    browser.get("https://192.168.2.62/")
    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive,
    fattening or in love with someone else!"


    On Thu, Apr 26, 2012 at 2:19 PM, Deepak Jangid wrote:

    selenium 2.20
    python 2.7

    code:
    from selenium.common.exceptions import NoSuchElementException
    from selenium.webdriver.common.keys import Keys
    from selenium import selenium
    import time
    import os, stat
    import re
    import selenium.webdriver.common.alert
    from Tkinter import *
    import tkMessageBox
    import Tkinter


    PROXY_HOST = "sg.proxy.avaya.com"
    PROXY_PORT = 8000

    fp = webdriver.FirefoxProfile()

    fp.set_preference("network.proxy.type", 1)

    fp.set_preference("network.proxy.http", PROXY_HOST)
    fp.set_preference("network.proxy.http_port", PROXY_PORT)
    fp.set_preference("network.proxy.ftp", PROXY_HOST)
    fp.set_preference("network.proxy.ftp_port", PROXY_PORT)
    fp.set_preference("network.proxy.ssl", PROXY_HOST)
    fp.set_preference("network.proxy.ssl_port", PROXY_PORT)

    fp.set_preference("network.proxy.no_proxies_on",
    "localhost,127.0.0.1")# set this value as desired
    fp.update_preferences()
    browser = webdriver.Firefox(firefox_profile=fp)
    browser.implicitly_wait(10)
    time.sleep(0.2)
    browser.get("https://192.168.2.62/")
    #print browser.get("https://192.168.2.62/")
    time.sleep(5)
    elem = browser.find_element_by_id('LoginForm:userName') # Find the
    query box
    elem.send_keys("admin" + Keys.RETURN)
    time.sleep(2)
    elem = browser.find_element_by_id('LoginForm:password') # Find the
    query box
    elem.send_keys("admin01" + Keys.RETURN)

    i am putting all values via script only here. But i want to put all
    from text file not via direct code lines.

    On Thu, Apr 26, 2012 at 2:15 PM, Krishnan Mahadevan <
    krishnan.mahadevan1978@gmail.com> wrote:
    How about you showing us the code that you have so far, which does
    what you are talking about.
    Also include what error you are facing.

    Dont forget to include the selenium version you are using and the
    browser flavor that you are working with along with its version.

    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive,
    fattening or in love with someone else!"


    On Thu, Apr 26, 2012 at 1:54 PM, Deepak Jangid wrote:

    Hello all,

    Need your expertise to solve one of my problem where i need to input
    the few data to the web page from csv or text file.

    Eg. After web-driver open the browser i need to put IP Address,
    Password, Domain name, user id and click next. On the next page again i
    need to fill some ip address and other user specific details and so on.

    Please help me to do it.

    Regards
    Deepak

    --
    You received this message because you are subscribed to the Google
    Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google
    Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google
    Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google
    Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google Groups
    "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google Groups
    "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
  • Krishnan Mahadevan at Apr 26, 2012 at 9:42 am
    Ideally speaking you should design your data file such that every row of it
    represents the data needed for 1 iteration.


    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive, fattening
    or in love with someone else!"

    On Thu, Apr 26, 2012 at 3:10 PM, Deepak Jangid wrote:

    If i will do that, how it will know that which data need to be taken from
    text file. Like sometime IP address some time user id password.


    On Thu, Apr 26, 2012 at 3:08 PM, Krishnan Mahadevan <
    krishnan.mahadevan1978@gmail.com> wrote:
    Then you can always put in python related logic to read the file, and
    then within a loop iterate the browser.get() right ?
    Have you tried doing that ?


    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive,
    fattening or in love with someone else!"

    On Thu, Apr 26, 2012 at 2:52 PM, Deepak Jangid wrote:

    yes in that browser i want to put all the data from text file and
    install new server.


    On Thu, Apr 26, 2012 at 2:36 PM, Krishnan Mahadevan <
    krishnan.mahadevan1978@gmail.com> wrote:
    Are you looking for iterating through your txt/csv file for packing in
    the values for this line of code ?
    browser.get("https://192.168.2.62/")
    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive,
    fattening or in love with someone else!"


    On Thu, Apr 26, 2012 at 2:19 PM, Deepak Jangid wrote:

    selenium 2.20
    python 2.7

    code:
    from selenium.common.exceptions import NoSuchElementException
    from selenium.webdriver.common.keys import Keys
    from selenium import selenium
    import time
    import os, stat
    import re
    import selenium.webdriver.common.alert
    from Tkinter import *
    import tkMessageBox
    import Tkinter


    PROXY_HOST = "sg.proxy.avaya.com"
    PROXY_PORT = 8000

    fp = webdriver.FirefoxProfile()

    fp.set_preference("network.proxy.type", 1)

    fp.set_preference("network.proxy.http", PROXY_HOST)
    fp.set_preference("network.proxy.http_port", PROXY_PORT)
    fp.set_preference("network.proxy.ftp", PROXY_HOST)
    fp.set_preference("network.proxy.ftp_port", PROXY_PORT)
    fp.set_preference("network.proxy.ssl", PROXY_HOST)
    fp.set_preference("network.proxy.ssl_port", PROXY_PORT)

    fp.set_preference("network.proxy.no_proxies_on",
    "localhost,127.0.0.1")# set this value as desired
    fp.update_preferences()
    browser = webdriver.Firefox(firefox_profile=fp)
    browser.implicitly_wait(10)
    time.sleep(0.2)
    browser.get("https://192.168.2.62/")
    #print browser.get("https://192.168.2.62/")
    time.sleep(5)
    elem = browser.find_element_by_id('LoginForm:userName') # Find the
    query box
    elem.send_keys("admin" + Keys.RETURN)
    time.sleep(2)
    elem = browser.find_element_by_id('LoginForm:password') # Find the
    query box
    elem.send_keys("admin01" + Keys.RETURN)

    i am putting all values via script only here. But i want to put all
    from text file not via direct code lines.

    On Thu, Apr 26, 2012 at 2:15 PM, Krishnan Mahadevan <
    krishnan.mahadevan1978@gmail.com> wrote:
    How about you showing us the code that you have so far, which does
    what you are talking about.
    Also include what error you are facing.

    Dont forget to include the selenium version you are using and the
    browser flavor that you are working with along with its version.

    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive,
    fattening or in love with someone else!"


    On Thu, Apr 26, 2012 at 1:54 PM, Deepak Jangid wrote:

    Hello all,

    Need your expertise to solve one of my problem where i need to input
    the few data to the web page from csv or text file.

    Eg. After web-driver open the browser i need to put IP Address,
    Password, Domain name, user id and click next. On the next page again i
    need to fill some ip address and other user specific details and so on.

    Please help me to do it.

    Regards
    Deepak

    --
    You received this message because you are subscribed to the Google
    Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google
    Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google
    Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google
    Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google
    Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google Groups
    "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google Groups
    "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to
    webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/webdriver?hl=en.
    --
    You received this message because you are subscribed to the Google Groups "webdriver" group.
    To post to this group, send email to webdriver@googlegroups.com.
    To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupwebdriver @
categorieswatir
postedApr 26, '12 at 8:24a
activeApr 26, '12 at 9:42a
posts8
users2
websitewatir.com

People

Translate

site design / logo © 2018 Grokbase