Re: [Wtr-general] Menu links have duplicate attributes
Hi, sorry for my english. Maybe you can use .csv or excel file to read the number index who match with the connected profil. If you use this 'tips', i think you'll win time the next time, index will change in your application. You'll have to modify just one file instead of all .rb file ... i hope i help you ! - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6036messageID=17141#17141 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Menu links have duplicate attributes
I also have duplicate menu names in one of our apps. I just use the link's index number instead. It's not as nice or convenient as using the text, but I don't mind hard-coding a link index every now and then if it means I can get on with the test and move onto the next thing. On 08/01/07, Garry West [EMAIL PROTECTED] wrote: I am currently having a problem clicking on a menu item. This menu item has the same attributes as another menu item, but they both do different things. I was using ie.frame(left).link(:id, 21).click (example) however because the link id's change depending on the user access rights I found it time consuming and difficult to manage. I am now using ie.frame(left).link(:title, Edit News).click (example). This has now caused a problem because we have two links, both of them with the same title, but within different directory folders in the menu tree. Does anybody know of a solution to this problem? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Menu links have duplicate attributes
Are either of the Edit News links contained within another element (table?). You may be able to do something like ie.frame('whatever').table(:id,'table1').link(:title,'Edit News') and ie.frame('whatever').table(:id,'table2').link(:title,'Edit News') like the other poster said though, a hard index isn't going to be the end of the world if nothing else works. You could also approach the developer and ask for a tag that would work better for you, its always an option. Good luck. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6036messageID=16911#16911 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Menu links have duplicate attributes
I am currently having a problem clicking on a menu item. This menu item has the same attributes as another menu item, but they both do different things. I was using ie.frame(left).link(:id, 21).click (example) however because the link id's change depending on the user access rights I found it time consuming and difficult to manage. I am now using ie.frame(left).link(:title, Edit News).click (example). This has now caused a problem because we have two links, both of them with the same title, but within different directory folders in the menu tree. Does anybody know of a solution to this problem? One way is to use some attribute other than [title]. Another is to try asking for testability--that is, getting the developers to change it. Sometimes that's easy--and sometimes it's desirable from points of view other than testability. ---Michael B. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general