I'm trying to select this input element http://imgur.com/a/MuE2X and input a username with this code: driver.findElement(By.name('username')).sendKeys('admin');
I'm getting this error: NoSuchElementError: no such element: Unable to locate element: {"method":"css selector","selector":"*[name="username"]"}
can anyone help me understand what I am doing wrong?
smccarthy-sl joined the channel
hmcgowan-sl joined the channel
smccarthy-sl
Without being at computer, timing issue? Inside an i frame ?
kristianmeier-sl joined the channel
ohmyfromage
how do i know if it is inside an iframe?
travisl-sl has quit
titusfortner-sl
search the DOM for 'iframe' :)
ohmyfromage
i see an iframe
sdisalvio-sl has quit
it is inside an iframe
titusfortner-sl
if it is in an iframe, you need to switch into that iframe first
titusfortner-sl i'm writing a report about alternatives; i'm leaving my current company and my boss asked me to do a write up about pros and cons
titusfortner-sl
That whole repo is showing how to run tests in parallel (specifically on Sauce Labs)
is this a congrats or I'm sorry?
ohmyfromage
smccarthy-sl: selenium I think
priya-sl joined the channel
XgizmoX- joined the channel
dude-x
titusfortner-sl i'm moving on
dmcnulla-sl has quit
shazzama_paja-sl joined the channel
so more like congrats, i guess
titusfortner-sl
do you know where yet?
:) Congrats!
dude-x
no not yet
i'm looking to join a finance company to get extra $$$$
bret-sl has quit
titusfortner-sl
@dude-x what is your company using now
matt_allen-sl joined the channel
dude-x
my test manager wrote a thing in python
titusfortner-sl
heh, where do you live?
dude-x
but we are a rails shop
i live in NYC
titusfortner-sl
Ah, ok, rails
dude-x
my test manager left a couple of weeks ago
titusfortner-sl
most rails people use capybara with rspec
dude-x
can capybara run tests in parallel easily?
like rake parallel tests and the spec
ohmyfromage
success! thanks titusfortner-sl smccarthy-sl
titusfortner-sl
Rspec & Cucumber both act as test harnesses / runners, and that is what controls parallel running
dude-x
titusfortner-sl seems like the sauce example does things (in parallel?) using task definitions
titusfortner-sl
Capybara / Watir are Test Frameworks / Libraries that can be run with either RSpec or Cucumber
hmcgowan-sl has quit
johnelm-sl joined the channel
kristianmeier-sl has quit
smccarthy-sl has quit
dude-x
well one of my coworkers was pushing Capybara when i joined. but i said that's a fight you have to have with the test manager.
barancev
titusfortner-sl: hi, I need some ruby help, how to wait until staleness of an element?
dude-x
but maybe now it will be his chance.
Danqa
Hi there. Getting the following error on file upload: Selenium::WebDriver::Error::UnknownError: unknown error: path is not absolute: seems to have the right path. Anyone seen this before and know how to fix?
chibz joined the channel
barancev
@wait.until(???)
titusfortner-sl
@dude-x hmm, the RSpec example is using parallel-test gem for it, I assumed it would work in cucumber as well
Danqa
Works locally for me but fails on my jenkins box even though the url its returning seems to be the correct path
titusfortner-sl parallel-test is not bad. it records test times and batches them. it was an idea i had when i used to do selenium in java/junit
chibz has quit
peter-sl has quit
titusfortner-sl
any wire call will error when it goes stale
chibz joined the channel
so it's just a matter of rescuing it
barancev
so it's more than a line of code, ok, thanks!
I thought there is a cheat
like it is always in ruby :)
david-seow-sl has quit
smccarthy-sl joined the channel
titusfortner-sl
it's one word in Watir. ;-)
`Element#stale?`
barancev
but... watir...
qageek-sl has quit
rewriting tons of tests...
titusfortner-sl
I really wish I'd gotten to give my presentation on Why Watir
yes, if it's a matter of rewriting tests, then right
smccarthy-sl has quit
SitamJana has quit
@dude-x yeah if devs at the company are familiar with and interested in Capybara, then that's the route you should go, even if I prefer Watir for a number of reasons :)