I am totally new to Watir World :) facing a bsic problem:
I am able to click a link by name 'In English' by using the below line of
code:
@browser.link(:text,'In English').click
However cannot click the same link using *:href* using below code:
On Wed, Jun 5, 2013 at 6:30 AM, Nikhil Nerkar nikhil.ner...@gmail.comwrote:
@browser.link(:href,'/lis/
lisDeskTopAction.changeLanguage.do?method=changeLanguageLANGUAGE=enlis.request.page.uid=-234720088').click
Try something like this:
@browser.a(:href = /changeLanguageLANGUAGE=en/).click
No, it is not possible unless that variable's value is exposed somehow at
the html source.
If it would be possible to read values of PHP variables using any tools
just like that, then it would not be possible to write secure applications
in PHP at all.
Jarmo Pertman
-
IT does really
For now, can I forget about the properties file, and have the Watir script
put the url directly in the address bar?
If that is possible I'll need the commands to do so.
I got nowhere with the links you sent.
When I add p properties.getUrl to my script the output is there minus
anything to the
I used to test a Java app and as part of that I'd read in the app's properties
because I used a few of them. It's not too hard to write something once you get
comfortable with all of the string parsing methods. I just wrote this:
def read_properties(path)
arr = File.read(path).split(\n)
On Monday, June 3, 2013 9:28:50 AM UTC-5, enroxorz wrote:
So I know that this issue was resolved here:
https://groups.google.com/d/msg/watir-general/FqVBzjNuOqA/7HtFJoJYzzkJ
but when I tested it I was running on Windows XP SP 3 with IE 8. We just
got new testing servers in that are