[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now


Why did you delete the script showing the code after you prepend the var?

Posted on 2016-08-24
Medium Priority
Last Modified: 2016-08-30
Question by:zubair k
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

Craig Kehler earned 2000 total points
ID: 41770572

The script that was working at one point in time is still in the article. But we modified our site and the selectors no longer work.

Here is another quick sample script that should validate in New Relic. Hopefully it will help you get started.

var By = $driver.By;
var driver = $browser;

driver.findElement(By.id("searchFormFiltered-compForm-searchTerms")).sendKeys("new relic");

Open in new window

This is the old code, still in the article.
var By = $driver.By;
var driver = $browser;

driver.findElement(By.css("div.row-content.first > a.button.confirm > span")).click();
driver.findElement(By.css("a.button.confirm > span")).click();
driver.findElement(By.linkText("Cloud Computing")).click();
driver.findElement(By.css("a[title=\"AWS\"] > input[name=\"taHolder\"]")).click();
driver.findElement(By.css("#searchFormSimple-form > p.buttons > button[name=\"searchSubmit\"]")).click();

Open in new window

Looks like I need to go back and update my article.

Expert Comment

by:Craig Kehler
ID: 41772052
This is the question I helped you with.

Author Comment

by:zubair k
ID: 41772055
I wish not to delete this i have made a mistake i have posted the question twice. I deleted the wrong one

Featured Post

Threat Trends for MSPs to Watch

See the findings.
Despite its humble beginnings, phishing has come a long way since those first crudely constructed emails. Today, phishing sites can appear and disappear in the length of a coffee break, and it takes more than a little know-how to keep your clients secure.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For some reason Google Apps has decided to reserve 'www' for your new domain which results in an error when trying to map the web address 'www' to a certain site in your Google Sites. The error is 'this address is already being used' and after some …
The task of choosing a web design company to build a website for your business should never be taken in a light manner. Provided the fact that your website will act as a representative to your business and will be responsible for imposing an online …
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question