You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to splinter-users
This is my first week with Splinter.
I want to traverse a website to perform some automation. I have the following code. browser=Browser() browser.visit(url) browser.find_by_id('j_username').fill(curid) browser.find_by_id('j_password').fill(curpwd) browser.find_by_id('button.ok').first.click() print browser.html
It logs in to the URL just fine and I can see a link I want to click labeled 'Change Passwords' FWIW, the page has several frames on it.
If I do browser.find_by_text('Change Passwords'), it fails. The output from print browser.html shows the html form the original url. I expect that the html in the browser would be that returned after the OK button is clicked. Am I missing something here?
Tom Kennedy
unread,
Feb 15, 2017, 11:07:45 AM2/15/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to splinter-users
OK, I was looking at an example and see that they put in sleep after click, to wait for new html is returned. So, I get that. But I still cannot find the Change Passwords text, even though I see it in the browser.
Tom Kennedy
unread,
Feb 15, 2017, 12:19:05 PM2/15/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to splinter-users
Looks like I need to do this: frame=browser.get_iframe('taskbar_area') to get the frame. Are the functions supported on a frame documented anywhere?