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.