After spending a good amount of time on this, I am struggling to figure out how to resize a window using scalatest plus.
I have searched online and looked through the documentation at
The method I found is executeScript("window.resizeTo(700, 700);")
However, this method seems unresponsive to me (no errors, no results). Is there another method that I am missing? Here is a brief snippet of my code:
import java.util.concurrent.TimeUnit
import org.scalatestplus.play._
...
// Code snippets omitted for brevity
class WebSpec extends PlaySpec {
// Test cases and browser info methods
}
One of my tests relies on different window sizes to see elements correctly, so controlling the window size is crucial. Unfortunately, I couldn't find much help on this in Scala.
Thank you for any assistance,
EDIT: Just to add, other scripts executed with `executeScript` are working fine, only the resize window script is not functioning as expected.