korimo / firewatir

Automatically exported from code.google.com/p/firewatir
0 stars 0 forks source link

REXML Document vs Firewatir Document #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run a test with REXML and Firewatir required
2. Create a new XML Document using REXML::Document.new
3.

What is the expected output? What do you see instead?
Should create a new XML Document with an xml string passed to it

What version of the product are you using? On what operating system?
Latest. The operating system is Windows Vista

Please provide any additional information below.
I have built a test engine that I use to run test scripts. They are driven 
by libraries that are created to utilize watir, firewatir and autoit thus 
far. I use REXML to store results of my test steps and when I try to 
create the new results document it always uses the Firewatir document 
class versus the REXML document class.

Original issue reported on code.google.com by spino...@gmail.com on 26 Apr 2007 at 12:46

GoogleCodeExporter commented 9 years ago
I tried the following code and it worked. There should not be any confusion on 
what
Document class to use if you use full name along with module name.

require 'firewatir'
require 'rexml/document'

doc = REXML::Document.new("<xml><tag1
name='tag1'></tag1></xml>")
doc.elements.each("xml/tag1") { |element|
     puts element.attributes["name"]
}

Code Output: tag1

The output is correct as it is using REXML Document and not Firewatir document.
Please you full qualifier name while accessing document class.

Original comment by ang...@gmail.com on 27 Apr 2007 at 5:20

GoogleCodeExporter commented 9 years ago
I tried the following code and it worked. There should not be any confusion on 
what
Document class to use if you use full name along with module name.

require 'firewatir'
require 'rexml/document'

doc = REXML::Document.new("<xml><tag1
name='tag1'></tag1></xml>")
doc.elements.each("xml/tag1") { |element|
     puts element.attributes["name"]
}

Code Output: tag1

The output is correct as it is using REXML Document and not Firewatir document.
Please you full qualifier name while accessing document class.

Original comment by ang...@gmail.com on 27 Apr 2007 at 5:21

GoogleCodeExporter commented 9 years ago

Original comment by ang...@gmail.com on 4 Oct 2007 at 7:28