oki, what version of chromedriver, what version of chrome
bjaberle-sl joined the channel
selepo
Latest version of chromedriver/chrome. The output from get_attribute('innerHTML) is <input type="radio" name="options[181]" data="200"><span class="x">some text</span>more text Tyring to do get_attribute('name") and get None
roshanavand joined the channel
Probably something I do wrong, not very good at HTML.
tommywo-sl has quit
lishoujun joined the channel
WhereIsMySpoon
selepo: sorry, can you paste the code you have? in a :gist
anyone have any succes with safari using .waitForElementVisible
lindsey-sl has quit
boneill-sl has quit
shicky-work joined the channel
shicky-sl joined the channel
cheezy-sl has quit
alan-baird-sl joined the channel
titusfortner-sl joined the channel
kanurim-sl has quit
gerixx-sl joined the channel
stooj has quit
duderonomy joined the channel
stooj joined the channel
matthiasguble-sl has quit
bjaberle-sl joined the channel
lim-sl has quit
shicky-sl has quit
Testertje has quit
cheezy-sl joined the channel
kanurim-sl joined the channel
alan-baird-sl has quit
gerixx-sl has quit
duderonomy has quit
bjaberle-sl has quit
tommywo-sl joined the channel
kggr joined the channel
titusfortner-sl has quit
cheezy-sl has quit
vitorcardoso-sl
hey guys
kanurim-sl has quit
WhereIsMySpoon
o/
titusfortner-sl joined the channel
vitorcardoso-sl
So... I'm using this command: WebDriverWait wait = new WebDriverWait(driver, 30); wait.until(ExpectedConditions.presenceOfElementLocated(By.id("Name"))); WebElement name = driver.findElement(By.id("Name")); name.sendKeys("TEST NAME"); name.submit(); String respname = name.getAttribute("value"); Assert.assertEquals(respname,"TEST NAME"); But in name.submit(), my pag
refresh?
WhereIsMySpoon
vitorcardoso-sl: what are you trying to do? submit() is for using on a <form> element
alan-baird-sl joined the channel
vitorcardoso-sl
i'll used submit to include the sendkeys valeu on my getatrribute
WhereIsMySpoon
huh?
vitorcardoso-sl: what is this element with id Name
some <input> ?
vitorcardoso-sl
it's all right, but when executed subimt, this refresh my page.
it's element name
input id="Name" class="form-control" type="text" value="" data-val-required="The Name field is required." data-val="true" placeholder="Informe seu nome*" name="name"
WhereIsMySpoon
vitorcardoso-sl: remove the submit
though to be honest, that whole bit of code is a bit useless
all you're doing is testing that selenium has sent the text to the input
selenium has its own tests to make sure it works :)
vitorcardoso-sl
but whithout submit can't i assert my test.. right? Because the value is empty