It's a simple script, giving me an error. I'm running it from a command line: scott$ python VerifyAboutPage.py chrome any And the error is: AttributeError: 'module' object has no attribute 'chrome' The relevant portions of the script should be: from selenium import webdriver import unittest, time, re, reporting, sys class VerifyAboutPage(unittest.TestCase): capabilities = None def setUp(self): driver = webdriver.Remote(desired_capabilities=self.capabilities) def tearDown(self): driver.quit() testreport.close() if __name__ == "__main__": VerifyAboutPage.capabilities = {"browserName": sys.argv[1], "platform": sys.argv[2],} unittest.main() I'm sure it's a simple error.

Member Avatar
Member Avatar
+0 forum 6

I created a JTree from an XML file like this: //Load Tree from XML file File stocks = new File("//Users/scott/Desktop/saSample.xml"); DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); doc = dBuilder.parse(stocks); doc.getDocumentElement().normalize(); // Set root folder DefaultMutableTreeNode rootnode = new DefaultMutableTreeNode(doc.getDocumentElement().getAttribute("saName")); DefaultTreeModel treeModel = new DefaultTreeModel(rootnode); objMgrTree.setModel(treeModel); // Set Pages as sub-folders NodeList nodes = doc.getElementsByTagName("Page"); for (int i = 0; i < nodes.getLength(); i++) { Node node = nodes.item(i); DefaultMutableTreeNode pagenode = new DefaultMutableTreeNode(node.getAttributes().getNamedItem("saName").getNodeValue()); rootnode.add(pagenode); //Iterate through each page element to find all elements under it NodeList subnodes = node.getChildNodes(); for (int j = 0; j < subnodes.getLength(); j++) …

Member Avatar
+0 forum 0

I posted a link to my personal website on Facebook. When I click the link to verify it works, I get a message from Safari saying the site I'm trying to visit may be hosting malware. The site it refers to is search-box.in, which is NOT my site. Does anyone know why I would be getting this? (I don't get the message if I visit my site directly).

Member Avatar
Member Avatar
+0 forum 7

The End.