Element not visible - Selenium - Java Webdriver -


i'm trying fill form on website , unable find element listed in code.

my code:

new webdriverwait(driver, 30).until(expectedconditions.visibilityofelementlocated(by.xpath("/html/body/div[1]/form/div/div/input[1]")));         driver.findelement(by.xpath("/html/body/div[1]/form/div/div/input[1]")).sendkeys("test"); 

relative website code:

<body>    <div id="pf_form" class="pf_formcontainer">    <form id="pf_1" class="form formboxshadow" style="height: 1600px; width:        1800px; display: block; left: 0px; top: 30px;">    <div id="pf_4container" class="pagecontainer" style="left:0px;top:0px;z-       index:0;position:absolute">    <div id="pf_4" class="page" tabindex="" name="pf_4" style="width: 1800px;        height: 1600px; background-color: rgb(255, 255, 255); display: block;">    <input id="pf_5" class="textinput" name="pf_5" maxlength="99" value=""        onclick="return false;" style="left: 169px; top: 107px; z-index: 6; height:        18px; line-height: 18px; width: 206px; display: block;" type="text">    ... 

i've tried change frame pf_4 , pf_4container, no luck there. i've tried find id , other means 1 kicking butt.

the form publicly visible here http://app.perfectforms.com/presentationserver/form.aspx/play/fdjigace?f=fdjigace

any guidance appreciated. i've been trying resolve weeks now.

if have html elements ids why using xpath? use:

webdriverwait wait = (new webdriverwait(driver, 30)); webelement input = wait.until(expectedconditions.presenceofelementlocated(by.id("pf_5"))); input.sendkeys("tests tests"); 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -