Questions tagged [expected-condition]

144 questions
-1
votes
1 answer

Not able to use ExpectedConditions function on angular site in protractor

var EC = protractor.ExpectedConditions; var e = browser.driver.findElement(by.xpath("//img[@class='ngx-loading-logo center-center']")); browser.wait(EC.presenceOf(e), 7000); The above code gives error as: Failures: 1) Actions demo auto search…
-1
votes
1 answer

What is the difference here that prevents this from working?

I'm reading a list of customer names and using each to find an element. Before reading the list, I make can confirm this works when I hard-code the name, datarow = driver.find_element_by_xpath("//span[contains(text(),'ACME Anvil…
-1
votes
1 answer

TypeError: find_element() takes from 1 to 3 positional arguments but 5 were given

Attempting to open the login page and log in, at which point the link ending in server_id=... will be available, which is a panel to edit my server listing, where I then want to click the Update button at the bottom. Am I using By properly? from…
-1
votes
2 answers

How to wait till an attribute has a different value?

When we don't have a wait on the screen
-1
votes
2 answers

How to locate the element by href attribute using Selenium through Java

I am trying to locate the following element using href. Acceptance Criteria I have to use…
-2
votes
2 answers

How to create wait in selenium that waits for a web element to finish refreshing

I'm fairly new to Selenium and I'm writing a test for a web app using it. In doing this, I'm using assertions to make sure the web app is working correctly. For a few of these assertions, I'm asserting on a web element that has a numeric value in…
-3
votes
1 answer

Why getting panic in Rust program with an expect

Beginner Rust fan - I am getting a panic for either one of these. I expected it from the first part, but not the second. What am I missing? fn main() { //let age = "4a"; //let age2: i32 = age.trim().parse().unwrap(); //println!("{:?}",…
ecorrales
  • 137
  • 11
-5
votes
1 answer

compile error expected identifier: error: arrray analysis

I'm pretty sure this is standard but im very stuck as to why my C code wont compile. I'm a newb trying an array challenge: #include int main(){ int num; scanf("%d", &num); // Reading input from…
1 2 3
9
10