selenium - How to add text to specific fields in a website that I take from a csv -


sorry if title not clear, had hard time writing short title explain here need.

i have website , in website there form want fill fields content of csv have.

so lets there csv titles:

id    name   age  3    john    35 

and in websites have form like:

person:  id _____  name _____  age _____ 

so want fill form selenium automatically , have selenium take data csv....how can this?

there method called sendkeys(), use method fill form.

for example:

driver.findelement(xpath_for_id).sendkeys("3"); driver.findelement(xpath_for_name).sendkeys("john"); driver.findelement(xpath_for_age).sendkeys("35"); 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -