Skip to content
Snippets Groups Projects
Commit f7593139 authored by srosse's avatar srosse
Browse files

OO-2868: update selenium tests

parent a3cd4aae
No related branches found
No related tags found
No related merge requests found
...@@ -255,13 +255,13 @@ public class CourseEditorPageFragment { ...@@ -255,13 +255,13 @@ public class CourseEditorPageFragment {
By openerBy = By.cssSelector("a.o_opener"); By openerBy = By.cssSelector("a.o_opener");
browser.findElement(openerBy).click(); browser.findElement(openerBy).click();
By urlBy = By.cssSelector("div.o_copy_code"); By urlBy = By.cssSelector("div.o_copy_code input");
OOGraphene.waitElement(urlBy, browser); OOGraphene.waitElement(urlBy, browser);
String url = null; String url = null;
List<WebElement> urlEls = browser.findElements(urlBy); List<WebElement> urlEls = browser.findElements(urlBy);
for(WebElement urlEl:urlEls) { for(WebElement urlEl:urlEls) {
String text = urlEl.getText(); String text = urlEl.getAttribute("value");
if(text.contains("http")) { if(text.contains("http")) {
url = text.trim(); url = text.trim();
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment