Nov
12
awarded Notable Question
Jul
2
awarded Curious
Jul
10
awarded Popular Question
Oct
5
accepted How to extract a value which does not have any attribute in ruby watir
Oct
5
comment How to extract a value which does not have any attribute in ruby watir
Thank you so much. This is exactly what i was looking for. I did not know how to get the yourtext value. Now it all work fine.... Thanks again......
Oct
3
comment How to extract a value which does not have any attribute in ruby watir
I am not sure if you noticed my earlier comments. the variable 'yourtext' changes with every response. I am not sure how to get the resonse and pass it to variable 'yourtext'. Please advice.
Sep
27
comment How to extract a value which does not have any attribute in ruby watir
I tested the solution and work correct. But this is not completly solving the issue. See the text which you are referring is not some static text. It is what gets displayed on browser as a response to the request. And this text though remains in same pattern, the values changes for each response. It is like, the number of tags which gets displayed will always remain same and same does the field ID's only the corresponding values keep changing. So I need to capture Value of a filed ID for a perticular response... Can you please adivce if a above sloution can be modified accordingly.
Sep
26
awarded Editor
Sep
25
comment How to extract a value which does not have any attribute in ruby watir
Thank you for the details. I am getting close to the solution now. I have implemented you solution this way. newvalue=/field\s+id="38"\s+value="(.+?)"/.match(yourtext)[1] but then I started getting this error - undefined local variable or method yourString' for main:Object, so i did this text1='yourtext' newvalue=/field\s+id="38"\s+value="(.+?)"/.match(yourtext)[1] and now I get this error 'undefined method []' for nil:NilClass (NoMethodError)'. Can you please take a look and advice....
Sep
25
comment How to extract a value which does not have any attribute in ruby watir
Also in the proposed solution, I am not able to make out what is the group you have mentioned about and what is the value is in\1 which you are refering to. Request you to guide me thought the same
Sep
25
comment How to extract a value which does not have any attribute in ruby watir
When i implement this i get an error. I am very new to ruby and do not much understand the implementation. Here is the error I get. auth.rb:126: syntax error, unexpected $undefined, expecting keyword_end newtext=field\s+id="38"\s+value="(.+?)"
Sep
24
comment How to extract a value which does not have any attribute in ruby watir
It is not the First filed which i want to extract. I actually have to extract Field 29 which I have not mentioned here as it would be too long. But what I need is like for specified ID like 2 or 3, I need to extract and save the corresponding value. I should be some how able to tell ruby to extract value of this ID and save it to some variable so that I can use it in later steps
Sep
24
asked How to extract a value which does not have any attribute in ruby watir
Sep
18
comment How to write some value to a text file in ruby based on position
My bad again... and I was off for weekend.... Have accepted the answer... Thanks again
Sep
18
accepted How to write some value to a text file in ruby based on position
Sep
13
comment How to read value from a text file in ruby using watir based on position
I checked again and it works good. it is problem with the note pad that it is printing in single line. When i check in edit plus tool it is showing up correct... Thanks again
Sep
12
comment How to write some value to a text file in ruby based on position
Peter, Thanks for the solution. I am able to write the text based on position. but when the out.text is created, all the text are in one single line instead of 3 lines. Can you please suggest. I tried adding \n in couple of places but is not helping...
Sep
12
comment How to read value from a text file in ruby using watir based on position
Hi Peter, I tires couple of solution and could not get it to work. I have added a new post with all the details. Would be helpful if you could take a look and suggest me a solution... Thanks in advance stackoverflow.com/questions/12382956/…
Sep
12
asked How to write some value to a text file in ruby based on position
Sep
10
comment How to read value from a text file in ruby using watir based on position
Hi Peter, Similarly can you also please suggest how to write into a file instaed of reading.. as I implemented this solution , I am running into a scenario where I even have to write into a file... Is there a way to implement the same solution to even write to a file for require position for require line....
1 2 3 4