Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98372

How to send the the values to dropdown lists whose input type is text instead of select?

$
0
0

I was trying to automate the ticket creation automation for the verizon site https://myverizonenterprise.verizon.com/vec/public/quicktasks/repairs/index.html#/repairsqf/tickets/create

In this site I want to send the value to the dropdown box of state field. But, unfortunately no solution is working for me. I tried below code in python, but that didn't work.

state = driver.find_element_by_xpath("//*[@id='combobox-1062-trigger-picker']").click()
driver.find_element_by_xpath("//*[contains(text(), 'TX')]").click()

I have also tried following code.

state = driver.find_element_by_xpath("//*[@id='combobox-1062-trigger-picker']")
state.send_keys('TX')

Even this solution didn't work for me.

Can anybody provide me a working solution?

Thanks, Malleshappa Teli


Viewing all articles
Browse latest Browse all 98372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>