I am using Selenium
with Python
for Automation of a website for my organisation. I am using Mozilla FireFox Web Browser for this purpose. Firefox version is 72.0.1 (64 bit).
I have already read all answers similar to my problem available in stack overflow but not able to get solution of my problem
I am fetching some data from webpage in my Python program. My Program is able to fetch data related to maximum required fields from that webpage but not able to fetch data of a particular field.
Manually also if I am trying to copy this field from firefox Browser I am unable to do so. But Manually when I am trying to copy the same field through Internet Explorer than I am able to do so.
I have tried both implicit and explicit wait also but timeout exception is raised in that case. Following is the code to fetch this particular field-
community_name=driver.find_element_by_xpath("input[@id='BNAZZZWUUGKEZQXF44ZDZMNEC5W1SZZZ__0___OLD']")
community_name = community_name.get_attribute("value")
print(community_name)
#If I am applying wait here than timeout exception is raised
Following is the HTML code of this particular field-
<INPUT TYPE='hidden' NAME='BNAZZZWUUGKEZQXF44ZDZMNEC5W1SZZZ__0___OLD' ID='BNAZZZWUUGKEZQXF44ZDZMNEC5W1SZZZ__0___OLD' VALUE="bhpb-ean"><input id='BNAZZZWUUGKEZQXF44ZDZMNEC5W1SZZZ__0___OLD_text' name='BNAZZZWUUGKEZQXF44ZDZMNEC5W1SZZZ__0___OLD_text' readonly='' disabled='' value='bhpb-ean'/></td>
I have to copy bhpb-ean value from web-browser I think this can be problem related to Firefox web-browser.There are some other fields also where similar type of issue is raised for getting the value.I have to use Mozilla web-browser only.
Hope I am clear. Can you help me to solve my problem? Thanks in Advance