Solved

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

Posted on 2016-08-24
3
108 Views
Last Modified: 2016-08-30
0
Comment
Question by:zubair k
[X]
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
3 Comments
 
LVL 6

Accepted Solution

by:
Craig Kehler earned 500 total points
ID: 41770572
Hello,

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.get("http://www.experts-exchange.com");
driver.findElement(By.id("searchFormFiltered-compForm-searchTerms")).click();
driver.findElement(By.id("searchFormFiltered-compForm-searchTerms")).clear();
driver.findElement(By.id("searchFormFiltered-compForm-searchTerms")).sendKeys("new relic");
driver.findElement(By.name("searchSubmit")).click();

Open in new window


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

driver.get("http://www.experts-exchange.com");
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.xpath("//div[@id='asId-menu1']/ul/li/a")).click();
driver.findElement(By.linkText("Cloud Computing")).click();
driver.findElement(By.css("a[title=\"AWS\"] > input[name=\"taHolder\"]")).click();
driver.findElement(By.id("searchFormSimple-form-searchTerms")).clear();
driver.findElement(By.id("searchFormSimple-form-searchTerms")).sendKeys("amazon");
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.
0
 
LVL 6

Expert Comment

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

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
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do i set default values to a map 4 45
IIS and .Net Web Service 24 135
Get POST to .Net C# ASHX Generic Handler page 2 124
web services creation SOAP vs REST 5 84
When coding a Webservice to provide data, the normal way is to create a method that returns a Dataset object.   But a Dataset cannot be used easily from another platform, such as PHP,  FLAS (FLEX) , etc. Solution : Return a XML Document instea…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 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